Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to edit Camera.size property unity

//To edit the .size property in a orthographic camera you can use the 
//'orthographicSize' propery, like this

public Camera CameraObject;

private void Start()
    {
  		//Sets size
        CameraObject.orthographicSize = 3;
    }
 
PREVIOUS NEXT
Tagged: #edit #property #unity
ADD COMMENT
Topic
Name
7+2 =