Question by
alex1915fifa · May 13 at 06:42 PM ·
uibuttonsaccesscomponentsmodify
Modify the inner UI elements of a button
Hi i have a button, that I'm able to access to that is made this way: Button Text Text2 Image AnotherButton As i was saying I have the button stored into a variable and i want to change the value of the 2 textes and the path of the image, how do i do that? I can put the 2 textes in one if it's a problem that there are 2. I have tried using getComponent, getComponents, getComponentInChilder and everything else i could find on the internet. Still, nothing seems to work, i can't even print the value that i assigned to the button in unity. (All the calls to the methods i nominate before were done with as the type argument and nothing in the plain parentesis).
Comment