how to get name of the gameobject in unity code example Example: unity find gameobject by name GameObject enemy = GameObject.Find("enemy");