Class GltfMaterialsSample
Demonstrates how to load a 3D model using an OS file picker and apply a custom material mapping for glTF2 materials. This sample creates the AssetLoaderOptions if necessary, configures them using GltfMaterialsHelper, and then launches the file picker via AssetLoaderFilePicker.
Namespace: TriLibCore.Samples
Assembly: TriLibCore.MaterialMappers.dll
Syntax
public class GltfMaterialsSample : MonoBehaviour
Methods
LoadModel()
Creates the AssetLoaderOptions if necessary, configures them to use the glTF2 material mapper, and then opens the OS file-picker for the user to select a model file.
Declaration
public void LoadModel()
Remarks
You can create custom AssetLoaderOptions by right-clicking in the Assets Explorer and selecting "TriLib->Create->AssetLoaderOptions->Pre-Built AssetLoaderOptions".