how to set the parent of a object to nothing in unity using unity script code example Example: unity remove parent transform.parent = null;