- Home /
How to reference a variable in the text(script) component
I understand I could accomplish this by using a script that changes the text and then change the variable from that script.
However, I'd like to be able to type into the text box provided on the text(script) component so I don't need a ton of scripts to set the text equal to the proper text.
Is there a way to reference a variable from inside the text(script) component's text box so that I can just have a single script with a set of names or whatever I want to change?
Thanks much
Comment
i dont really understand what you are trying to achieve, in the text box you cant add variables, just strings, can you share an example?