- Home /
Changing size of variable
How can I Change the size of a variable via script like in the animation component? I'm fluent with only basic java script.
A little more detail may help us help you... I can't figure out what you are asking...
Answer by Justin Warner · Dec 24, 2010 at 04:01 PM
To get the variable, you must use the GetComponent, to get the script (If the script is on another game object, than you need to make a var for that game object, and have the GetComponent go off that), then you need to .varibaleNameHere = ??.
Just read up on the API, and search the forums, people've asked this before =).
Your answer
Follow this Question
Related Questions
Accessing a variable within a function.... GetComponent() 2 Answers
Variable from a external script not being effected 2 Answers
GetComponent with variable script possible? 1 Answer
getComponent not working with Triggers? 1 Answer
Passing variables between classes attached to different GameObjects 2 Answers