Does anyone know how to change a parts scale via script?
If so, thanks!
Does anyone know how to change a parts scale via script?
If so, thanks!
Every game object has a Transform component and every transform component has a property called “localScale”. This is a Vector3 where each element in the vector corresponds to the scale in x, y and z directions. See the following entry in the Unity documentation:
http://unity3d.com/support/documentation/ScriptReference/Transform-localScale.html