📅  最后修改于: 2022-03-11 14:49:13.630000             🧑  作者: Mango
//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#