Hello. I made this two-objects .blend which I want to import in Unity, but it seems it doesn’t get the animation right. In Blender the lever rotates nicely on the x axis and the base stays still. In Unity both objects rotate.
Any clues what should I do, apart of importing each object in a different .blend file?
In your project window, which has the lever and the base, click on the base and look at the inspector. If you see an “Animation” component delete it in the inspector - click on the little cog icon on the right ->Remove component.
I am guessing that your animation has been attached to both objects on import.
@wccrawford - I’m not sure I know what blendshapes are. In this case the lever object (separated from the base object) has just a simple rotation on X axis. Does it really need a bone to import the animation succesfully?
@gryff - I have attached an archive containing the .blend file and two screenshots of my Unity window. Any help is greatly appreciated.
Gherasim, looking at your screenshots and testing the fbx export from Blender the problem seems to be the parenting of the objects.
In your screenshot, I see a Game Object called “maneta” it is the parent to two child meshes “maneta” and “suport maneta”. The parent has the rotation animation - so it is rotating both of its children.
Try this:
Highlight the child “suport manata” and left click and drag it down the hierarchy window to an empty area - this will unparent it.
Highlight the parent “maneta” left click and drag it onto the “suport maneta” that you created in 1.
Now try it . It worked fine for me. The animation is now not on the parent - only the lever part is now being rotated.
Man, I tried for 30 min to figure out what was wrong with the hierarchy in Blender. Then I realized that you were talking about changing the parents in Unity.
I sent your advice to our level designer, I hope he will manage to succesfully use the asset. Thanks a lot!