Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity spawn object at position

 public Transform SpawnPosition;
 public GameObject ObjectToCreate;
 
 void SpawnObject() {
     Instantiate(ObjectToCreate, SpawnPosition.position);
 }
 
PREVIOUS NEXT
Tagged: #unity #spawn #object #position
ADD COMMENT
Topic
Name
1+5 =