Tanoda
TriLibCore.AssetLoaderFilePicker Class Reference

Represents an Asset Loader which loads files using a platform-specific file picker. More...

Inheritance diagram for TriLibCore.AssetLoaderFilePicker:

Public Member Functions

void LoadModelFromFilePickerAsync (string title, Action< AssetLoaderContext > onLoad, Action< AssetLoaderContext > onMaterialsLoad, Action< AssetLoaderContext, float > onProgress, Action< bool > onBeginLoad, Action< IContextualizedError > onError, GameObject wrapperGameObject, AssetLoaderOptions assetLoaderOptions)
 Loads a Model from the OS file picker asynchronously, or synchronously when the OS doesn't support Threads. More...
 

Static Public Member Functions

static AssetLoaderFilePicker Create ()
 Creates the Asset Loader File Picker Singleton instance. More...
 

Detailed Description

Represents an Asset Loader which loads files using a platform-specific file picker.

Definition at line 14 of file AssetLoaderFilePicker.cs.

Member Function Documentation

◆ Create()

static AssetLoaderFilePicker TriLibCore.AssetLoaderFilePicker.Create ( )
static

Creates the Asset Loader File Picker Singleton instance.

Returns
The created AssetLoaderFilePicker.

Definition at line 28 of file AssetLoaderFilePicker.cs.

◆ LoadModelFromFilePickerAsync()

void TriLibCore.AssetLoaderFilePicker.LoadModelFromFilePickerAsync ( string  title,
Action< AssetLoaderContext >  onLoad,
Action< AssetLoaderContext >  onMaterialsLoad,
Action< AssetLoaderContext, float >  onProgress,
Action< bool >  onBeginLoad,
Action< IContextualizedError >  onError,
GameObject  wrapperGameObject,
AssetLoaderOptions  assetLoaderOptions 
)

Loads a Model from the OS file picker asynchronously, or synchronously when the OS doesn't support Threads.

Parameters
titleThe dialog title.
onLoadThe Method to call on the Main Thread when the Model is loaded but resources may still pending.
onMaterialsLoadThe Method to call on the Main Thread when the Model and resources are loaded.
onProgressThe Method to call when the Model loading progress changes.
onBeginLoadThe Method to call when the model begins to load.
onErrorThe Method to call on the Main Thread when any error occurs.
wrapperGameObjectThe Game Object that will be the parent of the loaded Game Object. Can be null.
assetLoaderOptionsThe options to use when loading the Model.

Definition at line 44 of file AssetLoaderFilePicker.cs.


The documentation for this class was generated from the following file: