Class ListModelResourcesSample
Demonstrates how to use TriLib to load a 3D model and list its associated resources (model path, textures, and external data). This sample allows the user to select a model via a file-picker and displays the loaded resources in a UI text component.
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 ListModelResourcesSample : MonoBehaviour
Methods
LoadModel()
Invokes TriLib’s file-picker dialog for selecting a model. If TriLibCore.Samples.ListModelResourcesSample._assetLoaderOptions is null, a default set of loader options is created first. Registers callback methods for load progress, completion, and errors.
Declaration
public void LoadModel()
Remarks
You can create AssetLoaderOptions via
TriLib > Create > AssetLoaderOptions > Pre-Built AssetLoaderOptions
in the Unity editor.