Class AutodeskInteractiveMaterialsSample
Demonstrates how to load a 3D model using an OS file picker and apply a custom material mapping for Autodesk Interactive materials. This sample creates the AssetLoaderOptions if necessary, configures them using AutodeskInteractiveMaterialsHelper, and then launches the file picker via AssetLoaderFilePicker.
Namespace: TriLibCore.Samples
Assembly: TriLibCore.MaterialMappers.dll
Syntax
public class AutodeskInteractiveMaterialsSample : MonoBehaviour
Methods
LoadModel()
Creates the AssetLoaderOptions (if not already available) and displays the OS file-picker to select a model file for loading. The method also configures the asset loader to use the Autodesk Interactive material mapper.
Declaration
public void LoadModel()
Remarks
You can create custom AssetLoaderOptions by right-clicking in the Assets window and selecting "TriLib->Create->AssetLoaderOptions->Pre-Built AssetLoaderOptions".