unity search by gameobjects name code example Example: unity find gameobject by name GameObject enemy = GameObject.Find("enemy");