Class ModelImporter
Inheritance
ModelImporter
Assembly: UnityEditor.dll
Syntax
public class ModelImporter : AssetImporter
Properties
addCollider
Declaration
public bool addCollider { get; set; }
Property Value
animationCompression
Declaration
public ModelImporterAnimationCompression animationCompression { get; set; }
Property Value
animationPositionError
Declaration
public float animationPositionError { get; set; }
Property Value
animationRotationError
Declaration
public float animationRotationError { get; set; }
Property Value
animationScaleError
Declaration
public float animationScaleError { get; set; }
Property Value
animationType
Declaration
public ModelImporterAnimationType animationType { get; set; }
Property Value
animationWrapMode
Declaration
public WrapMode animationWrapMode { get; set; }
Property Value
bakeIK
Declaration
public bool bakeIK { get; set; }
Property Value
|
Improve this Doc
View Source
clipAnimations
Declaration
public ModelImporterClipAnimation[] clipAnimations { get; set; }
Property Value
|
Improve this Doc
View Source
defaultClipAnimations
Declaration
public ModelImporterClipAnimation[] defaultClipAnimations { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public string[] extraExposedTransformPaths { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string[] extraUserProperties { get; set; }
Property Value
generateAnimations
Declaration
public ModelImporterGenerateAnimations generateAnimations { get; set; }
Property Value
generateMaterials
Declaration
[Obsolete("Use importMaterials, materialName and materialSearch instead")]
public ModelImporterGenerateMaterials generateMaterials { get; set; }
Property Value
generateSecondaryUV
Declaration
public bool generateSecondaryUV { get; set; }
Property Value
globalScale
Declaration
public float globalScale { get; set; }
Property Value
humanDescription
Declaration
public HumanDescription humanDescription { get; set; }
Property Value
humanoidOversampling
Declaration
public ModelImporterHumanoidOversampling humanoidOversampling { get; set; }
Property Value
importAnimatedCustomProperties
Declaration
public bool importAnimatedCustomProperties { get; set; }
Property Value
importAnimation
Declaration
public bool importAnimation { get; set; }
Property Value
importBlendShapeNormals
Declaration
public ModelImporterNormals importBlendShapeNormals { get; set; }
Property Value
importBlendShapes
Declaration
public bool importBlendShapes { get; set; }
Property Value
importCameras
Declaration
public bool importCameras { get; set; }
Property Value
importConstraints
Declaration
public bool importConstraints { get; set; }
Property Value
importedTakeInfos
Declaration
public TakeInfo[] importedTakeInfos { get; }
Property Value
importLights
Declaration
public bool importLights { get; set; }
Property Value
importMaterials
Declaration
public bool importMaterials { get; set; }
Property Value
importNormals
Declaration
public ModelImporterNormals importNormals { get; set; }
Property Value
importTangents
Declaration
public ModelImporterTangents importTangents { get; set; }
Property Value
importVisibility
Declaration
public bool importVisibility { get; set; }
Property Value
Declaration
public ModelImporterIndexFormat indexFormat { get; set; }
Property Value
isBakeIKSupported
Declaration
public bool isBakeIKSupported { get; }
Property Value
|
Improve this Doc
View Source
isFileScaleUsed
Declaration
[Obsolete("Use useFileScale instead")]
public bool isFileScaleUsed { get; }
Property Value
isReadable
Declaration
public bool isReadable { get; set; }
Property Value
isTangentImportSupported
Declaration
public bool isTangentImportSupported { get; }
Property Value
isUseFileUnitsSupported
Declaration
public bool isUseFileUnitsSupported { get; }
Property Value
keepQuads
Declaration
public bool keepQuads { get; set; }
Property Value
materialLocation
Declaration
public ModelImporterMaterialLocation materialLocation { get; set; }
Property Value
materialName
Declaration
public ModelImporterMaterialName materialName { get; set; }
Property Value
materialSearch
Declaration
public ModelImporterMaterialSearch materialSearch { get; set; }
Property Value
|
Improve this Doc
View Source
meshCompression
Declaration
public ModelImporterMeshCompression meshCompression { get; set; }
Property Value
motionNodeName
Declaration
public string motionNodeName { get; set; }
Property Value
normalCalculationMode
Declaration
public ModelImporterNormalCalculationMode normalCalculationMode { get; set; }
Property Value
|
Improve this Doc
View Source
normalImportMode
Declaration
[Obsolete("normalImportMode is deprecated. Use importNormals instead")]
public ModelImporterTangentSpaceMode normalImportMode { get; set; }
Property Value
normalSmoothingAngle
Declaration
public float normalSmoothingAngle { get; set; }
Property Value
normalSmoothingSource
Declaration
public ModelImporterNormalSmoothingSource normalSmoothingSource { get; set; }
Property Value
optimizeGameObjects
Declaration
public bool optimizeGameObjects { get; set; }
Property Value
optimizeMesh
Declaration
public bool optimizeMesh { get; set; }
Property Value
preserveHierarchy
Declaration
public bool preserveHierarchy { get; set; }
Property Value
|
Improve this Doc
View Source
referencedClips
Declaration
public string[] referencedClips { get; }
Property Value
resampleCurves
Declaration
public bool resampleCurves { get; set; }
Property Value
resampleRotations
Declaration
[Obsolete("use resampleCurves instead.")]
public bool resampleRotations { get; set; }
Property Value
secondaryUVAngleDistortion
Declaration
public float secondaryUVAngleDistortion { get; set; }
Property Value
secondaryUVAreaDistortion
Declaration
public float secondaryUVAreaDistortion { get; set; }
Property Value
secondaryUVHardAngle
Declaration
public float secondaryUVHardAngle { get; set; }
Property Value
secondaryUVPackMargin
Declaration
public float secondaryUVPackMargin { get; set; }
Property Value
|
Improve this Doc
View Source
sourceAvatar
Declaration
public Avatar sourceAvatar { get; set; }
Property Value
|
Improve this Doc
View Source
splitAnimations
Declaration
[Obsolete("splitAnimations has been deprecated please use clipAnimations instead.", true)]
public bool splitAnimations { get; set; }
Property Value
|
Improve this Doc
View Source
splitTangentsAcrossSeams
Declaration
[Obsolete("Please use tangentImportMode instead")]
public bool splitTangentsAcrossSeams { get; set; }
Property Value
swapUVChannels
Declaration
public bool swapUVChannels { get; set; }
Property Value
|
Improve this Doc
View Source
tangentImportMode
Declaration
[Obsolete("tangentImportMode is deprecated. Use importTangents instead")]
public ModelImporterTangentSpaceMode tangentImportMode { get; set; }
Property Value
Declaration
public string[] transformPaths { get; }
Property Value
useFileScale
Declaration
public bool useFileScale { get; set; }
Property Value
useFileUnits
Declaration
public bool useFileUnits { get; set; }
Property Value
useSRGBMaterialColor
Declaration
public bool useSRGBMaterialColor { get; set; }
Property Value
weldVertices
Declaration
public bool weldVertices { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CreateDefaultMaskForClip(ModelImporterClipAnimation)
Declaration
public void CreateDefaultMaskForClip(ModelImporterClipAnimation clip)
Parameters
|
Improve this Doc
View Source
Declaration
public bool ExtractTextures(string folderPath)
Parameters
Type |
Name |
Description |
String |
folderPath |
|
Returns
SearchAndRemapMaterials(ModelImporterMaterialName, ModelImporterMaterialSearch)
Declaration
public bool SearchAndRemapMaterials(ModelImporterMaterialName nameOption, ModelImporterMaterialSearch searchOption)
Parameters
Returns
Extension Methods