Answers for "how to change the scale of a gameobject in unity"

C#
20

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;
Posted by: Guest on June-13-2020
0

how to change the scale of a gameobject in unity

vector3 world = transform.lossyScale;
Posted by: Guest on September-10-2021

Code answers related to "how to change the scale of a gameobject in unity"

C# Answers by Framework

Browse Popular Code Answers by Language