can you change the name of GameObject from script? Not the tag orlayer but the name of the object you would see from the Hierarchy Menu.
Sure, just set it's name property:
GameObject.FindWithTag("MainCamera").name="MyMainMain";
can you change the name of GameObject from script? Not the tag orlayer but the name of the object you would see from the Hierarchy Menu.
Sure, just set it's name property:
GameObject.FindWithTag("MainCamera").name="MyMainMain";