Unity How To Get Transform Scale

[Solved] Unity How To Get Transform Scale | Csharp - Code Explorer | yomemimo.com
Question : unity set object scale

Answered by : aranjello

//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;

Source : | Last Update : Sat, 20 Jun 20

Answers related to unity how to get transform scale

Code Explorer Popular Question For Csharp