- Home /
Make child's transform independent of parent
I want to create independent moving child objects that in terms of transform variables have nothing to do with their parent. I'm only putting them as children because it's more organized that way, is there anything I could do to keep this organization and make the children independent of the parent?
So example:
Here I want the Triggers to have their own transform, independently just like a regular game object you would put in your scene, but I want to make it clear that the Door Model is associated with those triggers.
Thanks,
Alex
Answer by beStrange · Mar 28, 2017 at 11:32 PM
Why not use an empty game object as parent?
Door
-Model
-Trigger1
-Trigger2
That way you can animate your model independent from the triggers and keep everything organised.
To add to this, if you need scripts on the door and the model and the triggers to be able to refer to each other, you can declare public fields on a script and link the objects together in the inspector