Additional Loading Options
The Importer.AdditionalLoadingOptions
class provides fields to configure model loading behavior:
Importer.CompressTextures
Controls whether textures are compressed during import to reduce memory usage.Importer.CompressWithHighQuality
Sets the quality level for texture compression whenCompressTextures
is enabled.Importer.GenerateMipMaps
Determines whether mipmaps are generated for textures during import.Importer.MakeTexturesNoLongerReadable
Marks textures as non-readable after import to optimize memory usage.Importer.MakeMeshesNoLongerReadable
Marks meshes as non-readable after import to optimize memory usage.Importer.MaxThreadStall
Defines the maximum time (in milliseconds) the main thread may be stalled before yielding.Importer.TextureFilterMode
Specifies the filter mode for imported textures, controlling their sampling behavior.
You can create an instance of this class and pass it to the ImportFromFile
, ImportFromFileAsync
, ImportFromStream
, and ImportFromStreamAsync
methods of the Importer
class.