How to bind two gameobjects together?

Hey,

want to parent an Armature to a bone of another armature but if i change the hirachy of the Model they are in the animation doesn’t play properly anymore.

Here is a bit more explanation:

[6361-unity+parent+explanation.jpg|6361]

The selected object is the “child” armature. The red dot is roughly were the “parent” bone is. In the bottom picture one of the animation is playing. You can see the armature object didn’t move it’s position only the the bones. This makes it a bit difficult for me to just make a script that can handle the “childs” position. The reason why i want to parent it is. The parent bones of the red marked one can rotate around there y-axis which makes the Model lean.

Here is the current Hirarchy a bit more zoomed in:

6259-unityakbuildhirarchy.jpg

I would be happy to get a solution wether it’s in Unity or in Blender.

PS: I read both of the answers but i still didn’t manage to get a working script and the suggestion to apply the animation to an empty gameobject i just don’t understand how that works? So íf anyone would explain me those suggestion a bit more that would me too.

here is the dropbox link containing my current setup. If you want to help me just delete the PlayerScript after you imported it to Unity.

https://www.dropbox.com/sh/n2v0nqrv6ocy85u/rD-huVjURK/Unity%20Parent%20Issue.unitypackage

Perhaps use empty gameobjects as mediums of transformation? Sorry that’s the best I can do but I still don’t understand exactly what you want

Maybe you should try setting ones transform.position to the others transform.position.
Having the first transform position constantly set the others transform position as his.