Quantum 3
3.0.9
Represents an asset database. More...
Public Member Functions | |
| AssetDB (IResourceManager manager) | |
| Represents an asset database. More... | |
| bool | DisposeAsset (AssetGuid guid) |
| Disposes the asset with the specified guid . More... | |
| bool | DisposeAsset (string path) |
| Disposes an asset based on its path. More... | |
| AssetObject | FindAsset (AssetGuid guid) |
| Finds an asset based on its GUID. More... | |
| AssetObject | FindAsset (string path) |
| Finds an asset with the given path. More... | |
| bool | LoadAsset (AssetGuid guid) |
| Loads the specified asset asynchronously. More... | |
Public Attributes | |
| IEnumerable< AssetObject > | LoadedAssets => ResourceManager.GetAllLoadedAssets() |
| Returns all loaded assets. More... | |
Represents an asset database.
|
inline |
Represents an asset database.
This class is obsolete. Use the IResourceManager interface instead.
| AssetObject AssetDB.FindAsset | ( | AssetGuid | guid | ) |
Finds an asset based on its GUID.
| guid | The GUID of the asset to find. |
null if not found.| AssetObject AssetDB.FindAsset | ( | string | path | ) |
Finds an asset with the given path.
| path | The path of the asset. |
null if the asset was not found.This method is obsolete. Use the IResourceManager.GetAsset method instead.
| bool AssetDB.LoadAsset | ( | AssetGuid | guid | ) |
Loads the specified asset asynchronously.
| guid | The unique identifier of the asset to load. |
This method is obsolete. Use the IResourceManager.LoadAssetAsync method instead.
| bool AssetDB.DisposeAsset | ( | AssetGuid | guid | ) |
Disposes the asset with the specified guid .
| guid | The GUID of the asset to dispose. |
true if the asset was disposed successfully; otherwise, false.| bool AssetDB.DisposeAsset | ( | string | path | ) |
Disposes an asset based on its path.
| path | The path of the asset to dispose. |
true if the asset is disposed successfully; otherwise, false.This method is obsolete. Use the IResourceManager.DisposeAsset method instead.
| IEnumerable<AssetObject> AssetDB.LoadedAssets => ResourceManager.GetAllLoadedAssets() |
Returns all loaded assets.