📜  unity c# 代码示例中的gameobject

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

代码示例1
//define "myObject"
//(asign in in inspector)
public GameObject myObject;
//runs when you hit the play button
void Start()
{
  //change the name to "myObjectsNewName"
  myObject.name = "myObjectsNewName";
}
//Note for Unity and C#