unparent an object unity code example Example: unity unparent gameObject.transform.parent = null // remove parent of Game Object