Tanoda
TriLibCore.AssetDownloaderBehaviour Class Reference

Represents a class used to download Models with Coroutines used by the Asset Downloader. More...

Inheritance diagram for TriLibCore.AssetDownloaderBehaviour:

Public Member Functions

IEnumerator DownloadAsset (UnityWebRequest unityWebRequest, Action< AssetLoaderContext > onLoad, Action< AssetLoaderContext > onMaterialsLoad, Action< AssetLoaderContext, float > onProgress, GameObject wrapperGameObject, Action< IContextualizedError > onError, AssetLoaderOptions assetLoaderOptions, object customContextData, string fileExtension, bool? isZipFile=null)
 Downloads the Model using the given Request and options. More...
 

Detailed Description

Represents a class used to download Models with Coroutines used by the Asset Downloader.

Definition at line 12 of file AssetDownloaderBehaviour.cs.

Member Function Documentation

◆ DownloadAsset()

IEnumerator TriLibCore.AssetDownloaderBehaviour.DownloadAsset ( UnityWebRequest  unityWebRequest,
Action< AssetLoaderContext >  onLoad,
Action< AssetLoaderContext >  onMaterialsLoad,
Action< AssetLoaderContext, float >  onProgress,
GameObject  wrapperGameObject,
Action< IContextualizedError >  onError,
AssetLoaderOptions  assetLoaderOptions,
object  customContextData,
string  fileExtension,
bool?  isZipFile = null 
)

Downloads the Model using the given Request and options.

Parameters
unityWebRequestThe Unity Web Request used to load the Model. You can use the CreateWebRequest method to create a new Unity Web Request or pass your instance.
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.
wrapperGameObjectThe Game Object that will be the parent of the loaded Game Object. Can be null.
onErrorThe Method to call on the Main Thread when any error occurs.
assetLoaderOptionsThe options to use when loading the Model.
customContextDataThe Custom Data that will be passed along the Context.
fileExtensionThe extension of the URI Model.
isZipFilePass true if your file is a Zip file.
Returns
The download coroutine enumerator.

Definition at line 41 of file AssetDownloaderBehaviour.cs.


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