instantiate name unity code example
Example: 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";
// (You don't need to instantiate an additional object, just set the 'name' attribute)
GameObject go = Instantiate(this.speedBlock);
go.name = "SpeedBlock";