Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How to create a gameobject by code

GameObject testCube; //insert the gameObject you want
void Start() {
  testCube = new GameObject("Test_Cube");//determines name
}
 
PREVIOUS NEXT
Tagged: #How #create #gameobject #code
ADD COMMENT
Topic
Name
4+2 =