Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity instantiate with name

// (You don't need to instantiate an additional object, just set the 'name' attribute)
GameObject go = Instantiate(this.speedBlock);
go.name = "SpeedBlock";
 
PREVIOUS NEXT
Tagged: #unity #instantiate
ADD COMMENT
Topic
Name
2+5 =