Model importer lets you modify model import settings from editor scripts.
Settings of this class match the ones exposed in Mesh Import Settings.
|Add mesh colliders to imported meshes.
|Animation compression setting.
|Allowed error of animation position compression.
|Allowed error of animation rotation compression.
|Allowed error of animation scale compression.
|Animator generation mode.
|The default wrap mode for the generated animation clips.
|Generate auto mapping if no avatarSetup is provided when importing humanoid animation.
|The Avatar generation of the imported model.
|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.
|Bake Inverse Kinematics (IK) when importing.
|Animation clips to split animation into. See Also: ModelImporterClipAnimation.
|Generate a list of all default animation clip based on TakeInfo.
|Animation optimization setting.
|Additional properties to treat as user properties.
|Scaling factor used when useFileScale is set to true (Read-only).
|Animation generation options.
|Generate secondary UV set for lightmapping.
|Global scale factor for importing.
|The human description that is used to generate an Avatar during the import process.
|Controls how much oversampling is used when importing humanoid animations for retargeting.
|Import animated custom properties from file.
|Import animation from file.
|Blend shape normal import options.
|Controls import of BlendShapes.
|Controls import of cameras. Basic properties like field of view, near plane distance and far plane distance can be animated.
|Import animation constraints.
|Generates the list of all imported take.
|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.
|Vertex normal import options.
|Vertex tangent import options.
|Use visibility properties to enable or disable MeshRenderer components.
|Format of the imported mesh index buffer data.
|Is Bake Inverse Kinematics (IK) supported by this importer.
|Are mesh vertices and indices accessible from script?
|Is import of tangents supported by this importer.
|Is useFileUnits supported for this asset.
|If this is true, any quad faces that exist in the mesh data before it is imported are kept as quads instead of being split into two triangles, for the purposes of tessellation. Set this to false to disable this behavior.
|Material creation options.
|Material import location options.
|Material naming setting.
|Existing material search setting.
|The maximum number of bones per vertex stored in this mesh data.
|Mesh compression setting.
|Options to control the optimization of mesh data during asset import.
|Minimum bone weight to keep.
|The path of the transform used to generation the motion of the animation.
|Normal generation options for ModelImporter.
|Smoothing angle (in degrees) for calculating normals.
|Source of smoothing information for calculation of normals.
|Only import bones where they are connected to vertices.
|Animation optimization setting.
|Optimize the order of polygons in the mesh to make better use of the GPUs internal caches to improve rendering performance.
|Optimize the order of vertices in the mesh to make better use of the GPUs internal caches to improve rendering performance.
|If true, always create an explicit Prefab root. Otherwise, if the model has a single root, it is reused as the Prefab root.
|Generates the list of all imported Animations.
|Removes constant animation curves with values identical to the object initial scale value.
|If set to false, the importer will not resample curves when possible. Read more about animation curve resampling.Notes:- Some unsupported FBX features (such as PreRotation or PostRotation on transforms) will override this setting. In these situations, animation curves will still be resampled even if the setting is disabled. For best results, avoid using PreRotation, PostRotation and GetRotationPivot.- This option was introduced in Version 5.3. Prior to this version, Unity's import behaviour was as if this option was always enabled. Therefore enabling the option gives the same behaviour as pre-5.3 animation import.
|Threshold for angle distortion (in degrees) when generating secondary UV.
|Threshold for area distortion when generating secondary UV.
|Hard angle (in degrees) for generating secondary UV.
|Method to use for handling margins when generating secondary UV.
|The minimum lightmap resolution in texels per unit that the associated model is expected to have.
|The minimum object scale that the associated model is expected to have.
|Margin to be left between charts when packing secondary UV.
|Skin weights import options.
|Sorts the gameObject hierarchy by name.
|Imports the HumanDescription from the given Avatar.
|Swap primary and secondary UV channels when importing.
|Generates the list of all imported Transforms.
|Use FileScale when importing.
|Detect file units and import as 1FileUnit=1UnityUnit, otherwise it will import as 1cm=1UnityUnit.
|When disabled, imported material albedo colors are converted to gamma space. This property should be disabled when using linear color space in Player rendering settings. The default value is true.
|Combine vertices that share the same position in space.
|Creates a mask that matches the model hierarchy, and applies it to the provided ModelImporterClipAnimation.
|Extracts the embedded textures from a model file (such as FBX or SketchUp).
|Search the project for matching materials and use them instead of the internal materials.
|Get or set the AssetBundle name.
|Get or set the AssetBundle variant.
|The path name of the asset for this importer. (Read Only)
|The value is true when no meta file is provided with the imported asset.
|Get or set any user data.
|Should the object be hidden, saved with the Scene or modifiable by the user?
|The name of the object.
|Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
|Gets a copy of the external object map used by the AssetImporter.
|Removes an item from the map of external objects.
|Save asset importer settings if asset importer is dirty.
|Set the AssetBundle name and variant.
|Checks if the AssetImporter supports remapping the given asset type.
|Gets the instance ID of the object.
|Returns the name of the object.
|Retrieves the asset importer for the asset at path.
|Removes a GameObject, component or asset.
|Destroys the object obj immediately. You are strongly recommended to use Destroy instead.
|Do not destroy the target Object when loading a new Scene.
|Returns the first active loaded object of Type type.
|Gets a list of all loaded objects of Type type.
|Clones the object original and returns the clone.