Tanoda
|
Represents a class used to load models from Byte Arrays using callbacks to map External Data and Textures. More...
Static Public Member Functions | |
static AssetLoaderContext | LoadModelFromByteData (byte[] data, string modelExtension, Action< IContextualizedError > onError, Action< AssetLoaderContext, float > onProgress, Action< AssetLoaderContext > onModelFullyLoad, Func< string, Stream > customDataReceivingCallback, Func< string, string > customFilenameReceivingCallback, Func< ITexture, Stream > customTextureReceivingCallback, string modelFilename=null, GameObject wrapperGameObject=null, AssetLoaderOptions assetLoaderOptions=null, object customData=null) |
Loads a model from the given Byte Array data using the given callbacks to handle events/external data. More... | |
static AssetLoaderContext | LoadModelFromStream (Stream stream, string modelExtension, Action< IContextualizedError > onError, Action< AssetLoaderContext, float > onProgress, Action< AssetLoaderContext > onModelFullyLoad, Func< string, Stream > customDataReceivingCallback, Func< string, string > customFilenameReceivingCallback, Func< ITexture, Stream > customTextureReceivingCallback, string modelFilename=null, GameObject wrapperGameObject=null, AssetLoaderOptions assetLoaderOptions=null, object customData=null) |
Loads a model from the given Byte Array data using the given callbacks to handle events/external data. More... | |
Represents a class used to load models from Byte Arrays using callbacks to map External Data and Textures.
Definition at line 62 of file SimpleCustomAssetLoader.cs.
|
static |
Loads a model from the given Byte Array data using the given callbacks to handle events/external data.
data | The model data Byte Array. |
modelExtension | The model file extension. |
onError | The error event callback (optional). |
onProgress | The loading progress event callback. |
onModelFullyLoad | The model loading event callback. |
customDataReceivingCallback | The event that returns a Stream to read the external data passed to it. |
customFilenameReceivingCallback | The event that returns a file-system complete filename from the filename passed to it (optional). |
customTextureReceivingCallback | The event that returns a Stream to read Texture data from the filename passed to it. |
modelFilename | The model filename (optional). |
wrapperGameObject | The GameObject to wrap the loaded model (optional). |
assetLoaderOptions | The AssetLoaderOptions to use when loading the model (optional). |
customData | Any custom data to pass to the loading method, which can be retrieved later (optional). |
Definition at line 86 of file SimpleCustomAssetLoader.cs.
|
static |
Loads a model from the given Byte Array data using the given callbacks to handle events/external data.
stream | The model data Stream. |
modelExtension | The model file extension. |
onError | The error event callback (optional). |
onProgress | The loading progress event callback. |
onModelFullyLoad | The model loading event callback. |
customDataReceivingCallback | The event that returns a Stream to read the external data passed to it. |
customFilenameReceivingCallback | The event that returns a file-system complete filename from the filename passed to it (optional). |
customTextureReceivingCallback | The event that returns a Stream to read Texture data from the filename passed to it. |
modelFilename | The model filename (optional). |
wrapperGameObject | The GameObject to wrap the loaded model (optional). |
assetLoaderOptions | The AssetLoaderOptions to use when loading the model (optional). |
customData | Any custom data to pass to the loading method, which can be retrieved later (optional). |
Definition at line 128 of file SimpleCustomAssetLoader.cs.