Directly Controlling an .fbx MakeHuman Avatar in Unity With a Script

518 Views Asked by At

I imported a character from MakeHuman into Unity as .fbx file. Now I am trying to controll the characters parts/skeleton, e.g. the head rotation (see picture below for full skeleton structure), directly with a script, but I am pretty new to Unity. Maybe someone has any tips for me on how to acces the parts of the skeleton.

Character skeleton structure

My guess is to use GetComponent() to access every component one by one, but what is their type? And is there maybe a smoother way which keeps the tree structure?

1

There are 1 best solutions below

1
Auri On

If you imported the rig of the character as humanoid and set all bones in the import tap, you could try to get those propertys out of the animator. He should now which gameobject is which bone, case you mapped it for him.