TriLib 2.2.8
|
Represents a class used to load all the models inside a Zip file. More...
Static Public Member Functions | |
static void | LoadAllModelsFromZipStream (Stream stream, Action< AssetLoaderContext > onLoad, Action< AssetLoaderContext > onMaterialsLoad, Action< AssetLoaderContext, float > onProgress, Action< IContextualizedError > onError=null, GameObject wrapperGameObject=null, AssetLoaderOptions assetLoaderOptions=null, object customContextData=null, string fileExtension=null, bool haltTask=false, Action< AssetLoaderContext > onPreLoad=null) |
Loads all models from the given Zip file Stream asynchronously. | |
static void | LoadAllModelsFromZipFile (string path, Action< AssetLoaderContext > onLoad, Action< AssetLoaderContext > onMaterialsLoad, Action< AssetLoaderContext, float > onProgress, Action< IContextualizedError > onError=null, GameObject wrapperGameObject=null, AssetLoaderOptions assetLoaderOptions=null, object customContextData=null, string fileExtension=null, bool haltTask=false, Action< AssetLoaderContext > onPreLoad=null) |
Loads all models from the given Zip file path asynchronously. | |
Represents a class used to load all the models inside a Zip file.
|
static |
Loads all models from the given Zip file path asynchronously.
path | The Zip file path. |
onLoad | The Method to call on the Main Thread when any Model is loaded but resources may still pending. |
onMaterialsLoad | The Method to call on the Main Thread when any Model and resources are loaded. |
onProgress | The Method to call when any Model loading progress changes. |
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 Objects. Can be null. |
assetLoaderOptions | The options to use when loading the Models. |
customContextData | The Custom Data that will be passed along the Context. |
fileExtension | The Models inside the Zip file extension. If null TriLib will try to find a suitable model format inside the Zip file. |
haltTask | Turn on this field to avoid loading the models immediately and chain the Tasks. |
onPreLoad | The method to call on the parallel Thread before the Unity objects are created. |
|
static |
Loads all models from the given Zip file Stream asynchronously.
stream | The Zip file Stream. |
onLoad | The Method to call on the Main Thread when any Model is loaded but resources may still pending. |
onMaterialsLoad | The Method to call on the Main Thread when any Model and resources are loaded. |
onProgress | The Method to call when any Model loading progress changes. |
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 Objects. Can be null. |
assetLoaderOptions | The options to use when loading the Models. |
customContextData | The Custom Data that will be passed along the Context. |
fileExtension | The Models inside the Zip file extension. If null TriLib will try to find a suitable model format inside the Zip file. |
haltTask | Turn on this field to avoid loading the models immediately and chain the Tasks. |
onPreLoad | The method to call on the parallel Thread before the Unity objects are created. |