Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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.
 
PREVIOUS NEXT
Tagged: #variable #unity
ADD COMMENT
Topic
Name
7+2 =