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.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: TriLibCore.Samples
Assembly: Assembly-CSharp.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".