Answers for "unity scale resolution"

C#
34

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
1

unity change camera scale

//change camera zoom
Camera.main.orthographicSize = value
Posted by: Guest on May-20-2021

C# Answers by Framework

Browse Popular Code Answers by Language