parent gameobject through script code example Example: how to reference the parent of a gameobject transform.parent.gameObject