Search
 
SCRIPT & CODE EXAMPLE
 

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;
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity string format time 
Csharp :: c# main method 
Csharp :: get key unity 
Csharp :: c# convert seconds to hours minutes seconds 
Csharp :: get all files in all subdirectories c# 
Csharp :: get value from web.config c# 
Csharp :: c# get last two characters of string 
Csharp :: unity movetowards 2d 
Csharp :: mailkit send attachment 
Csharp :: c# System.Resources.MissingManifestResourceException error 
Csharp :: c# repeat string x times 
Csharp :: taking input in single line c# 
Csharp :: unity left mouse button 
Csharp :: unity c# set list to set active true 
Csharp :: change scene unity 
Csharp :: c# system.drawing.color to system.windows.media.color 
Csharp :: hide game obj oncollisionenter 
Csharp :: how to make a game 
Csharp :: how to cast list to observablecollection c# 
Csharp :: Request.ServerVariables["HTTP_X_FORWARDED_FOR"] get only one ipaddress 
Csharp :: unity how to ommit letters from a string 
Csharp :: c# unity camera follow 
Csharp :: how to generate random letters in C# 
Csharp :: c# object initialization can be simplified 
Csharp :: use only one class from a namespace in c# 
Csharp :: c# initialize array 
Csharp :: unity change color of sprite in script 
Csharp :: c# sort array string by length 
Csharp :: how to convert int to char in c# 
Csharp :: unity click on 2d object 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =