How can i access the gui_script of a gui component from other gameobject script?
What i want to do is: user press a button and it changes the text in the gui of other gameobject
How can i access the gui_script of a gui component from other gameobject script?
What i want to do is: user press a button and it changes the text in the gui of other gameobject
You can send messages between all objects, including to and from GUI-scripts. Check out the side-scroller tutorial where the GUI changes the score for each picked up star. Your case sounds very similar to that.
nvm, i have found that is simple as using “object#gui”