Change Buttons text from other scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pastuh

Hi,
I have a Main.tscn where I would import/load (via code) my UI.tscn which has a Button.
So how can acces Buttons text property so that I can change it in the Main.tscn.

I hope this makes sence

:bust_in_silhouette: Reply From: RyanJZG

I don’t quite understand your question but to access a button’s text is $Button.text.

I know that. Please try to read again and note that I have to do it from an other scene

Pastuh | 2018-04-06 12:48