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