public record class ModelImportSettingsHow one model is imported.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Each of these answers something the file cannot. Which axis is up, how the material tree is wired and what the LODs should be are all decisions with better homes — the first in the authoring tool, the second in a material asset, the third in the compiler that sees the whole model.
Fields and properties (15)
public int VersionThe importer's own version. Bumping it invalidates every artefact that importer produced.
public List<SubAssetRename> SubAssetNamespublic float ScaleWhat to multiply every length by.
public bool GenerateNormalsWhether to compute normals for meshes that have none.
public bool GenerateTangentsWhether to compute tangents for meshes that have UVs and no tangents.
public bool ImportAnimationsWhether to import the animation clips the file carries.
public bool GenerateDistanceFieldsWhether to bake a signed distance field for each of the model's meshes.
public int DistanceFieldResolutionHow many samples along the longest axis of each field.
public int DistanceFieldSignRaysHow many rays each sample casts to decide which side of the surface it is on.
public float DistanceFieldBoundsExpansionHow far a field's volume is grown past its mesh, as a fraction of the mesh's size.
public bool GenerateMeshletsWhether to build a cluster hierarchy for each of the model's meshes.
public int MeshletTrianglesThe most triangles one cluster may hold.
public int MeshletVerticesThe most distinct vertices one cluster may reference.
public int MeshletGroupSizeHow many clusters are simplified together as a group.
public int MeshletFallbackTrianglesHow many triangles the generated fallback mesh may have.
Methods (2)
public DistanceFieldBuildSettings ToDistanceFieldSettings()These as the bake wants them.
public MeshletBuildSettings ToMeshletSettings()These as the cluster build wants them.
Used by (11)
- AnimationBinderVixen.Editor.AssetEditors
- ImportSettingsMirrorTestsVixen.Editor.AssetEditors.Tests
- ImportedGeometryLoadsTestsVixen.Editor.Assets.Tests
- ImporterTestsVixen.Editor.Assets.Tests
- ModelImporterVixen.Editor.Assets
- ModelImporterTestsVixen.Editor.Assets.Tests
- ModelReaderVixen.Editor.Assets
- ModelReaderTestsVixen.Editor.Assets.Tests
- NavMeshImporterVixen.Editor.Assets
- ReflectedTypeTestsVixen.Editor.Scripts.Tests
- TypeRegistrationVixen.Editor.Assets