Creates a new loader
AssetsManager need to know to what scene the assets will be loaded
The list of all possible asset type
Check if this is the first time we use the loader
List the current assets loading by type
BabylonJS AssetsManager
Called when one asset is not successfully loaded
Called when one asset is successfully loaded
Store the functions waiting for a callback when asset will be loaded
The list of all asset which are images
Check if model uses instancedMesh
List of model meshes
Creates BabylonJS AssetsManager
When an asset didn't load correctly, we send a false result to the waiting callback
The type of asset not successfully loaded
Name of the asset
Object which contains the error
Get one asset, before loading it will check if the asset doesn't already exist
The type of asset to be loaded
The path to where the asset must be loaded
Function called once loading is over
Clone the main model parent in order to duplicate a model
List of model parents
Loop which get the last parent of a Mesh
mesh which parent need to be find
Look for all the main model parent
List of model meshes
For the model asset, the url path must be splited
Url of the model
Load one asset
The type of asset to be loaded
The path to where the asset must be loaded
Function called once loading is over
For the models we differenciate several model type on success (normal, animated and instanciated)
The path to where the asset must be loaded
Name of the asset
Object which contains the asset data
When model have animation we can't clone it and keep animation attach to meshes So we reload it in order to make sure every model as its own animations
The path to where the asset must be loaded
Name of the asset
Object which contains the asset data
When model have instance we can't clone it So we reload it in order to make sure it works
The path to where the asset must be loaded
Name of the asset
Object which contains the asset data
Normal success function for model wihtou instance or animations
The path to where the asset must be loaded
Name of the asset
Object which contains the asset data
Initiate the loading types
When an asset finish loading, we check the asset data ad return the result to the callback
The type of asset successfully loaded
The path to where the asset must be loaded
Name of the asset
Object which contains the asset data
Generated using TypeDoc
Manage the loading of any asset type from images to videos, models, sounds, etc