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