I have a unit called Girl who's parent is mover, who's parent is Girlbots. what happens when mover is destroyed? is Girlbots (the root) the new parent of Girl automatically?
Mover dies and it goes to:
May 03 '10 at 06:14 PM
No. Girl would be destroyed. Whenever a parent is destroyed, all its children would be destroyed unless you script otherwise by making the children children of another object.
May 03 '10 at 06:15 PM
May 03 '10 at 06:45 PM
thanks! I'll have to do that then.
@Jordan Miller no prob, happy to help.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: May 03 '10 at 06:14 PM
Seen: 868 times
Last Updated: May 03 '10 at 06:14 PM
How can I find a unique sibling/parent/child in a specific hierarchy and not from all the scene?
Collider working but not firing OnCollisionXYZ (in parent object)
How can I access a Collider's GameObject in script?
inside a script is there a way to disconnect a child from its paretn in c#
How to use Parent/Child
Position of parent-Object
parent object rotate with child camera
Dynamically parenting a collider object to a rigidbody object causes collision bug.