📜  unity 使用名称实例化 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:20.504000             🧑  作者: Mango

代码示例1
// (You don't need to instantiate an additional object, just set the 'name' attribute)
GameObject go = Instantiate(this.speedBlock);
go.name = "SpeedBlock";