Export animation from Blender to Unity

I knew how to export Blender’s actions to Unity, but sometimes I can’t use action. How to export Blender’s animation?

For example, I have two sphere that rotate around each other. The animation is very easy to made in Blender, but I can’t make it in an action, because an action consists of only 1 object or 1 armature.

How to export this simple animation? I tried simply export it as .fbx but Unity didn’t get anything about animation clip.

i never had much luck with anything other than one armature and one mesh when doing animation stuff between blender and unity. but some people say that object animations do work… i always had problems with them.
so in your case what i would do is create one armature with three bones. the first one is the root that stays in place, the second one is for one sphere, the third one is for the other sphere. then animate the second and the third bone the way you like it. now either join the two spheres as one mesh in blender and weight-paint the vertices of each sphere to the bones two and three or just import the armature to unity without a mesh and just drag the two separate spheres to the child-bones of the imported armature, so they’re following the bone animation. should work either way.

Hello!
I can’t be very especific about how to do it because my PC is reparing, but try this:

Drag that fbx to unity and then on the fbx opitons, scrolldown until you find “animations” and set a name and the frames to your animation.

If you want to play the animation, you have to make a script for it using this: Unity - Scripting API: Animation.Play

Regards,
topastop