TriLib accepts various options when loading your models.
Here are the options list contained in AssetLoaderOptions class:
- General
- Post Process Steps: Please refer to this link.
- Meshes
- DontLoadMeshes: Turn on this field to disable mesh loading.
- CombineMeshes: Turn on this field to combine multiple meshes with the same material into a single instance.
- Scale: Use this field to override object scale.
- RotationAngles: Use this field to override object rotation angles.
- Use32BitsIndexFormat: Turn on this field to enable 32-bits meshes index format (for loading high vertex-count models).
- GenerateMeshColliders: Turn on this field to enable mesh collider generation (only valid for skinned meshes).
- ConvexMeshColliders: Turn on this field to indicate that generated mesh colliders will be convex.
- Materials
- DontLoadMaterials: Turn on this field to disable animations loading.
- ApplyAlphaMaterials: Turn on this field to force alpha material scanning when you’re not using TriLib builtin image loader (STB Image Library).
- DisableAlphaMaterials: Turn on this field to don’t use alpha materials.
- UseCutoutMaterials: Turn on this field to use cutout alpha materials.
- UseStandardSpecularMaterial: Use this field to use Unity Standard Specular Material, if you get wrong specular results with the Standard Specular material, uncheck this field.
- TextureCompression: Use this field to assign the loaded textures compression level.
- GenerateMipMaps: Turn on this field to generate loaded textures mip-maps.
- Animations
- DontLoadAnimations: Turn on this field to disable animations loading.
- AutoPlayAnimations: Turn on this field to automatically play the first loaded animation (only for legacy animations).
- AnimationWrapMode: Use this field to change default animations wrap mode.
- EnsureQuaternionContinuity: Turn on this field to realign quaternion keys to ensure shortest interpolation paths.
- UseLegacyAnimations: Turn on this field to use legacy Unity Animation component.
- AnimatorController: If you don´t wish to use legacy animations, use this field to specify a Unity Animation Controller.
- Misc
- AddAssetUnloader: Turn on this field to add the AssetUnloader class to your loaded object, which releases resources upon the GameObject destruction.
- DontLoadCameras: Turn on this field to disable cameras loading.
- DontLoadLights: Turn on this field to disable cameras loading.
- Metadata
- DontLoadMetadata: Turn on this field to disable metadata loading.
- Advanced
- AdvancedConfigs: You can manually add advanced configurations to this field by creating them with the AssetAdvancedConfig.CreateConfig method. Please refer to the AssetLoaderOptions.cs source to check the advanced configs usage.