Answers for "unity c# variable types"

C#
3

unity c# variable types

//Formatting
[Access Modifier] [type] [name];
public GameObject someObject;
public Transform someTransform;
public Vector3 someVector = new Vector3();
public float someFloat = 1f;
public int someInt = 1;
public string someString = "";
public bool someBool = false;
public Camera someCamera;
public [someClassName] someClass = new [someClassName](); //this creates a new instance of a class
Posted by: Guest on February-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language