how to rename game object in script unity code example Example: unity rename gameobject var clone = Instantiate (prefab); clone.name = "Whatever";