through.a.haze
0
Q:

unity set object scale

//gets the local scale of an object
vector3 local = transform.localScale;

//sets the local scale of an object
transform.localScale = new Vector3(scaleX,scaleY,scaleZ);

//gets the world scale of the object but is read only
vector3 world = transform.lossyScale;
11
// This returns the scale of the object the script is attached to.
transform.localScale
7

New to Communities?

Join the community