Accessing text from a script

Hi everyone,
I am wondering how can I access the text script in the new UI Text from a script
Thanks in advance.

GetComponent < Text > ( ) . text

Use getcomponent (). If u need text component from seperate go then first use transform.find (“nameGO”) then getcomponent as previous mentioned

Hi,
I tried to do what you told me, but it didn’t work.

Hi, I tried to figure out what’s going on with your program with no information whatsoever, but it didn’t work.