How to create .anim file using maya

Hi as i am new to unity i am using fbx files to have animation for game objects. But i want .anim file to use on objects. So, is there any solution for preparing .anim either directly using maya or any other engine. Please suggest me…

.anim files (in the context of Unity) are Unity-specific animation files that Unity generates when it imports an FBX animation. After you import the FBX, expand it in the project view. Inside, you’ll find a .anim file associated with the animation.