unity API get parent game object code example Example: how to get parent gameobject in unity childObject.transform.parent.gameObject