- Home /
Question by
ArcticParadox · Jun 04, 2017 at 10:27 PM ·
c#sceneparenting
Is it possible to reparent an object to the root of a scene?
I have an object currently parented by another object. Can I move it using a c# script so that it has no parent in the scene?
Comment
Answer by ShadyProductions · Jun 04, 2017 at 10:27 PM
You can just set the parent to null.
gameObject.transform.parent = null;
Answer by Lagomorphic · Jun 08, 2017 at 03:36 PM
Hi there is actually a method here. In the manual link text
Or you could use link text
To Set the parent to either another hierachy parent or null... Or recreate the object or ....
:X