Importing objects from Cinema 4D
Importing objects from Maya
Unity natively imports Maya files, supporting the following:
- All nodes with position, rotation and scale; pivot points and names are also imported
- Meshes with vertex colors, normals and up to 2 UV sets
- Materials with texture and diffuse color; multiple materials per mesh
- FK & IK animation
- Bone-based animation
- Blend shapes
Limitations
Unity does not support Maya’s Segment Scale Compensate setting on joints.
Requirements
You need to have Maya installed to import .mb and .ma files directly into Unity.
If you don’t have Maya installed, use the .FBX format instead.
For more information about importing FBX files, see Importing models.
Behind the import process
When Unity imports a Maya file, it launches Maya in the background. Unity then communicates with Maya to convert the .mb file into a format Unity can read.
The first time you import an .mb or .ma file into Unity, Maya has to launch in a command line process. This can take a while, but subsequent imports are very quick.
Export settings in Maya
Blend shapes (morphing)
When exporting blend shapes from Maya:
- Apply the blend shape to the export mesh with its targets in order.
- If you require Maya animation keyframes, you can animate keyframes on the blend shape node.
- Go to Animation > Deformed Models > Blend Shapes and select the FBX Export option in Maya before exporting the mesh.
- If you also want to export skin deformation, go to Animation > Deformed Models > Skins and select the FBX Export option in Maya before exporting the mesh.
Import settings in Unity
Using IK to animate characters
When you’ve imported the .mb file into Unity, select it in the Project window and enable Bake Animations in the Animations tab of the Model Importer.
Tips and troubleshooting
- Keep your scene simple: only export the objects you need in Unity when exporting.
- Unity only supports polygons, so convert any patches or NURBS surfaces into polygons before exporting; see Maya documentation for instructions.
- If your model did not export correctly, the node history in Maya might be causing a problem. In Maya, select Edit > Delete by Type > Non-Deformer History and then re-export the model.
- Make sure you’re using the latest FBX exporters from the Autodesk website.
- The Maya FBX Exporter bakes un-supported complex animations constraints, such as Set Driven Keys, in order to import the animation into Unity properly. If you are using Set Driven Keys in Maya, make sure to set keys on your drivers in order for the animation to be baked properly. For more information, see the Maya documentation on Keyframe Animation.
- In Maya, the visibility value is present on each shape but can’t be animated and is not exported to the FBX file. Always set the visibility value on a node and not on a shape.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thanks for helping to make the Unity documentation better!
Importing objects from Cinema 4D