Tanoda
|
Represents an Asset Loader which loads files using a platform-specific file picker. More...
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... | |
Represents an Asset Loader which loads files using a platform-specific file picker.
Definition at line 14 of file AssetLoaderFilePicker.cs.
|
static |
Creates the Asset Loader File Picker Singleton instance.
Definition at line 28 of file AssetLoaderFilePicker.cs.
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.
title | The dialog title. |
onLoad | The Method to call on the Main Thread when the Model is loaded but resources may still pending. |
onMaterialsLoad | The Method to call on the Main Thread when the Model and resources are loaded. |
onProgress | The Method to call when the Model loading progress changes. |
onBeginLoad | The Method to call when the model begins to load. |
onError | The Method to call on the Main Thread when any error occurs. |
wrapperGameObject | The Game Object that will be the parent of the loaded Game Object. Can be null. |
assetLoaderOptions | The options to use when loading the Model. |
Definition at line 44 of file AssetLoaderFilePicker.cs.