Load, access, and unload the game's registered model3D resources. Call loadResource to download a GLB, then processResource to make it available through getModel.
The resources loader of the game.
To be called when the game is disposed. Clear the models, resources loaded and destroy 3D models loaders in this manager.
Return a 3D model.
Caller should not modify the object but clone it.
The name of the json resource.
a 3D model if it exists.
Return the kind of resources handled by this manager.
Load the specified resource.
This method will be run during the game. It should only do light tasks like file downloading.
Process the specified resource.
This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.
Clear any data in cache for a resource. Embedded resources are also cleared.
Usually called when scene resources are unloaded.
The resource to clear
Load, access, and unload the game's registered model3D resources. Call loadResource to download a GLB, then processResource to make it available through getModel.