Trigger Activation Issues - Switching Parents

Ok lets see if I can explain this…
I have a cube. When it enters and stays inside a particular trigger, I make the cube into a child of the trigger.
I use that relationship to move the cube into a new position. I click a button and the trigger is deactivated.
The button also detaches the cube-child relationship (using transform.DetachChildren). A new trigger is then activated.
Even though the cube is within the trigger it will not become a child of the new trigger as it did the first.

It appears that when you activate an object with a trigger attached, and the objects are already inside it does not register the collision. Is this true? Is there a better way to move an object from parent to parent?

Poor old Foster Cube…:frowning:

Wow really? Nobody has a clue how to transfer a child between two seperate parents? Hm… Lets see if I can solve this on my own. Please jump in at anytime.

You need to set the object’s transform.parent property to the transform of the object you want to be its parent. To clear the parent/child relationship, set transform.parent to null.