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.
name = "Another name";
somethingElse.name = "Some other name";
Sure, just set it's name property: