Show / Hide Table of Contents

Class ModelImporter

Inheritance
Object
Object
AssetImporter
ModelImporter
Inherited Members
AssetImporter.assetPath
AssetImporter.importSettingsMissing
AssetImporter.assetTimeStamp
AssetImporter.userData
AssetImporter.assetBundleName
AssetImporter.assetBundleVariant
AssetImporter.SetAssetBundleNameAndVariant(String, String)
AssetImporter.GetAtPath(String)
AssetImporter.SaveAndReimport()
AssetImporter.AddRemap(AssetImporter.SourceAssetIdentifier, Object)
AssetImporter.RemoveRemap(AssetImporter.SourceAssetIdentifier)
AssetImporter.GetExternalObjectMap()
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public class ModelImporter : AssetImporter

Properties

addCollider

Declaration
public bool addCollider { get; set; }
Property Value
Type Description
Boolean

animationCompression

Declaration
public ModelImporterAnimationCompression animationCompression { get; set; }
Property Value
Type Description
ModelImporterAnimationCompression

animationPositionError

Declaration
public float animationPositionError { get; set; }
Property Value
Type Description
Single

animationRotationError

Declaration
public float animationRotationError { get; set; }
Property Value
Type Description
Single

animationScaleError

Declaration
public float animationScaleError { get; set; }
Property Value
Type Description
Single

animationType

Declaration
public ModelImporterAnimationType animationType { get; set; }
Property Value
Type Description
ModelImporterAnimationType

animationWrapMode

Declaration
public WrapMode animationWrapMode { get; set; }
Property Value
Type Description
WrapMode

bakeIK

Declaration
public bool bakeIK { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

clipAnimations

Declaration
public ModelImporterClipAnimation[] clipAnimations { get; set; }
Property Value
Type Description
ModelImporterClipAnimation[]
| Improve this Doc View Source

defaultClipAnimations

Declaration
public ModelImporterClipAnimation[] defaultClipAnimations { get; }
Property Value
Type Description
ModelImporterClipAnimation[]
| Improve this Doc View Source

extraExposedTransformPaths

Declaration
public string[] extraExposedTransformPaths { get; set; }
Property Value
Type Description
String[]
| Improve this Doc View Source

extraUserProperties

Declaration
public string[] extraUserProperties { get; set; }
Property Value
Type Description
String[]

generateAnimations

Declaration
public ModelImporterGenerateAnimations generateAnimations { get; set; }
Property Value
Type Description
ModelImporterGenerateAnimations

generateMaterials

Declaration
[Obsolete("Use importMaterials, materialName and materialSearch instead")]
public ModelImporterGenerateMaterials generateMaterials { get; set; }
Property Value
Type Description
ModelImporterGenerateMaterials

generateSecondaryUV

Declaration
public bool generateSecondaryUV { get; set; }
Property Value
Type Description
Boolean

globalScale

Declaration
public float globalScale { get; set; }
Property Value
Type Description
Single

humanDescription

Declaration
public HumanDescription humanDescription { get; set; }
Property Value
Type Description
HumanDescription

humanoidOversampling

Declaration
public ModelImporterHumanoidOversampling humanoidOversampling { get; set; }
Property Value
Type Description
ModelImporterHumanoidOversampling

importAnimatedCustomProperties

Declaration
public bool importAnimatedCustomProperties { get; set; }
Property Value
Type Description
Boolean

importAnimation

Declaration
public bool importAnimation { get; set; }
Property Value
Type Description
Boolean

importBlendShapeNormals

Declaration
public ModelImporterNormals importBlendShapeNormals { get; set; }
Property Value
Type Description
ModelImporterNormals

importBlendShapes

Declaration
public bool importBlendShapes { get; set; }
Property Value
Type Description
Boolean

importCameras

Declaration
public bool importCameras { get; set; }
Property Value
Type Description
Boolean

importConstraints

Declaration
public bool importConstraints { get; set; }
Property Value
Type Description
Boolean

importedTakeInfos

Declaration
public TakeInfo[] importedTakeInfos { get; }
Property Value
Type Description
TakeInfo[]

importLights

Declaration
public bool importLights { get; set; }
Property Value
Type Description
Boolean

importMaterials

Declaration
public bool importMaterials { get; set; }
Property Value
Type Description
Boolean

importNormals

Declaration
public ModelImporterNormals importNormals { get; set; }
Property Value
Type Description
ModelImporterNormals

importTangents

Declaration
public ModelImporterTangents importTangents { get; set; }
Property Value
Type Description
ModelImporterTangents

importVisibility

Declaration
public bool importVisibility { get; set; }
Property Value
Type Description
Boolean

indexFormat

Declaration
public ModelImporterIndexFormat indexFormat { get; set; }
Property Value
Type Description
ModelImporterIndexFormat

isBakeIKSupported

Declaration
public bool isBakeIKSupported { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isFileScaleUsed

Declaration
[Obsolete("Use useFileScale instead")]
public bool isFileScaleUsed { get; }
Property Value
Type Description
Boolean

isReadable

Declaration
public bool isReadable { get; set; }
Property Value
Type Description
Boolean

isTangentImportSupported

Declaration
public bool isTangentImportSupported { get; }
Property Value
Type Description
Boolean

isUseFileUnitsSupported

Declaration
public bool isUseFileUnitsSupported { get; }
Property Value
Type Description
Boolean

keepQuads

Declaration
public bool keepQuads { get; set; }
Property Value
Type Description
Boolean

materialLocation

Declaration
public ModelImporterMaterialLocation materialLocation { get; set; }
Property Value
Type Description
ModelImporterMaterialLocation

materialName

Declaration
public ModelImporterMaterialName materialName { get; set; }
Property Value
Type Description
ModelImporterMaterialName

materialSearch

Declaration
public ModelImporterMaterialSearch materialSearch { get; set; }
Property Value
Type Description
ModelImporterMaterialSearch
| Improve this Doc View Source

meshCompression

Declaration
public ModelImporterMeshCompression meshCompression { get; set; }
Property Value
Type Description
ModelImporterMeshCompression

motionNodeName

Declaration
public string motionNodeName { get; set; }
Property Value
Type Description
String

normalCalculationMode

Declaration
public ModelImporterNormalCalculationMode normalCalculationMode { get; set; }
Property Value
Type Description
ModelImporterNormalCalculationMode
| Improve this Doc View Source

normalImportMode

Declaration
[Obsolete("normalImportMode is deprecated. Use importNormals instead")]
public ModelImporterTangentSpaceMode normalImportMode { get; set; }
Property Value
Type Description
ModelImporterTangentSpaceMode

normalSmoothingAngle

Declaration
public float normalSmoothingAngle { get; set; }
Property Value
Type Description
Single

normalSmoothingSource

Declaration
public ModelImporterNormalSmoothingSource normalSmoothingSource { get; set; }
Property Value
Type Description
ModelImporterNormalSmoothingSource

optimizeGameObjects

Declaration
public bool optimizeGameObjects { get; set; }
Property Value
Type Description
Boolean

optimizeMesh

Declaration
public bool optimizeMesh { get; set; }
Property Value
Type Description
Boolean

preserveHierarchy

Declaration
public bool preserveHierarchy { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

referencedClips

Declaration
public string[] referencedClips { get; }
Property Value
Type Description
String[]

resampleCurves

Declaration
public bool resampleCurves { get; set; }
Property Value
Type Description
Boolean

resampleRotations

Declaration
[Obsolete("use resampleCurves instead.")]
public bool resampleRotations { get; set; }
Property Value
Type Description
Boolean

secondaryUVAngleDistortion

Declaration
public float secondaryUVAngleDistortion { get; set; }
Property Value
Type Description
Single

secondaryUVAreaDistortion

Declaration
public float secondaryUVAreaDistortion { get; set; }
Property Value
Type Description
Single

secondaryUVHardAngle

Declaration
public float secondaryUVHardAngle { get; set; }
Property Value
Type Description
Single

secondaryUVPackMargin

Declaration
public float secondaryUVPackMargin { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

sourceAvatar

Declaration
public Avatar sourceAvatar { get; set; }
Property Value
Type Description
Avatar
| Improve this Doc View Source

splitAnimations

Declaration
[Obsolete("splitAnimations has been deprecated please use clipAnimations instead.", true)]
public bool splitAnimations { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

splitTangentsAcrossSeams

Declaration
[Obsolete("Please use tangentImportMode instead")]
public bool splitTangentsAcrossSeams { get; set; }
Property Value
Type Description
Boolean

swapUVChannels

Declaration
public bool swapUVChannels { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

tangentImportMode

Declaration
[Obsolete("tangentImportMode is deprecated. Use importTangents instead")]
public ModelImporterTangentSpaceMode tangentImportMode { get; set; }
Property Value
Type Description
ModelImporterTangentSpaceMode

transformPaths

Declaration
public string[] transformPaths { get; }
Property Value
Type Description
String[]

useFileScale

Declaration
public bool useFileScale { get; set; }
Property Value
Type Description
Boolean

useFileUnits

Declaration
public bool useFileUnits { get; set; }
Property Value
Type Description
Boolean

useSRGBMaterialColor

Declaration
public bool useSRGBMaterialColor { get; set; }
Property Value
Type Description
Boolean

weldVertices

Declaration
public bool weldVertices { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

CreateDefaultMaskForClip(ModelImporterClipAnimation)

Declaration
public void CreateDefaultMaskForClip(ModelImporterClipAnimation clip)
Parameters
Type Name Description
ModelImporterClipAnimation clip
| Improve this Doc View Source

ExtractTextures(String)

Declaration
public bool ExtractTextures(string folderPath)
Parameters
Type Name Description
String folderPath
Returns
Type Description
Boolean

SearchAndRemapMaterials(ModelImporterMaterialName, ModelImporterMaterialSearch)

Declaration
public bool SearchAndRemapMaterials(ModelImporterMaterialName nameOption, ModelImporterMaterialSearch searchOption)
Parameters
Type Name Description
ModelImporterMaterialName nameOption
ModelImporterMaterialSearch searchOption
Returns
Type Description
Boolean

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX