Answers for "how to make a variable unity"

1

variable gameobject unity

public GameObject *name*;
Posted by: Guest on March-22-2021
2

how to make a variable unity

public GameObject objectName; //creates a gameobject with the name "objectName"
private float myDecimal = 0.25f; //creates a float with the name "myDecimal";
//note that decimal floats have to end with 'f' and floats can be any numerical value.
Posted by: Guest on April-12-2021

Browse Popular Code Answers by Language