Model importer lets you modify model import settings from editor scripts.
Settings of this class match the ones exposed in Mesh Import Settings.
| addCollider | Add mesh colliders to imported meshes. |
| animationCompression | Animation compression setting. |
| animationPositionError | Allowed error of animation position compression. |
| animationRotationError | Allowed error of animation rotation compression. |
| animationScaleError | Allowed error of animation scale compression. |
| animationType | Animator generation mode. |
| animationWrapMode | The default wrap mode for the generated animation clips. |
| autoGenerateAvatarMappingIfUnspecified | Generate auto mapping if no avatarSetup is provided when importing humanoid animation. |
| avatarSetup | The Avatar generation of the imported model. |
| bakeAxisConversion | Computes the axis conversion on geometry and animation for Models defined in an axis system that differs from Unity's (left handed, Z forward, Y-up). When enabled, Unity transforms the geometry and animation data in order to convert the axis. When disabled, Unity transforms the root GameObject of the hierarchy in order to convert the axis. |
| bakeIK | Bake Inverse Kinematics (IK) when importing. |
| clipAnimations | Animation clips to split animation into. Additional resources: ModelImporterClipAnimation. |
| defaultClipAnimations | Generate a list of all default animation clip based on TakeInfo. |
| extraExposedTransformPaths | Animation optimization setting. |
| extraUserProperties | A list of default FBX properties to treat as user properties during OnPostprocessGameObjectWithUserProperties. |
| fileScale | Scaling factor used when useFileScale is set to true (Read-only). |
| generateAnimations | Animation generation options. |
| generateSecondaryUV | Generate secondary UV set for lightmapping. |
| globalScale | Global scale factor for importing. |
| humanDescription | The human description that is used to generate an Avatar during the import process. |
| humanoidOversampling | Controls how much oversampling is used when importing humanoid animations for retargeting. |
| importAnimatedCustomProperties | Import animated custom properties from file. |
| importAnimation | Import animation from file. |
| importBlendShapeDeformPercent | Import BlendShapes deform percent. |
| importBlendShapeNormals | Blend shape normal import options. |
| importBlendShapes | Controls import of BlendShapes. |
| importCameras | Controls import of cameras. Basic properties like field of view, near plane distance and far plane distance can be animated. |
| importConstraints | Import animation constraints. |
| importedTakeInfos | Generates the list of all imported take. |
| importLights | Controls import of lights. Note that because light are defined differently in DCC tools, some light types or properties may not be exported. Basic properties like color and intensity can be animated. |