Search Results for

    Show / Hide Table of Contents

    Class LoadModelFromFilePickerSample

    Demonstrates how to load a 3D model via a file-picker at runtime using AssetLoaderFilePicker. This sample displays a UI button to open the picker, and updates a progress label while the model is being loaded.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    LoadModelFromFilePickerSample
    Namespace: TriLibCore.Samples
    Assembly: TriLibCore.Samples.dll
    Syntax
    public class LoadModelFromFilePickerSample : MonoBehaviour

    Methods

    LoadModel()

    Invoked by the UI to create or use existing AssetLoaderOptions, then open the file-picker and load the selected model asynchronously.

    Declaration
    public void LoadModel()
    Remarks

    You can create AssetLoaderOptions assets by right-clicking in the Assets window and selecting TriLib > Create > AssetLoaderOptions > Pre-Built AssetLoaderOptions.

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top TriLib documentation