Holds assets for owner and loads the media among them.
A second call by the same owner replaces what it holds, and assets that
both sets share stay loaded. Pass add: true to keep what the owner holds
and add to it.
Call Assets.release when the owner no longer
needs the assets. Do not pass a scene as the owner without add: true: that
replaces what the engine holds for the scene.
Optionaloptions: AssetAcquireOptionsMakes sure that owner holds one asset, with the assets it references,
and starts loading it if it is not loaded. It does not wait for the file.
Does nothing when the owner already holds the asset, so you can call it
every frame.
Use it in a system that draws or plays an asset by an id that can change while the game runs. Pass the scene as the owner, and the asset unloads with the scene. To wait for the files, use Assets.acquire.
Returns an asset by its id, or undefined when there is none.
Returns an asset of one class by its id, or undefined when there is none.
Returns all assets.
Returns all assets of one class.
Checks if there is an asset with this id.
Drops what owner holds with Assets.acquire. An asset that no
owner holds is unloaded.
The project assets.
The engine creates an Asset for every entry in
assetsof the configuration. A MediaAsset gives its loaded file through MediaAsset.resource.Example