Extension methods for IResourceManager. More...
Static Public Member Functions | |
static bool | DisposeAsset< TResourceManager > (this TResourceManager resourceManager, string assetPath) |
Disposes an asset based on its path. More... | |
static AssetGuid | FindAssetGuid< TResourceManager > (this TResourceManager resourceManager, [HandlesResourceDisposal] AssetObjectQuery query) |
Finds the asset GUID based on the provided query. More... | |
static List< AssetGuid > | FindAssetGuids< TResourceManager > (this TResourceManager resourceManager, [HandlesResourceDisposal] AssetObjectQuery query) |
Finds the asset GUIDs based on the provided query. More... | |
static void | FindAssetGuids< TResourceManager > (this TResourceManager resourceManager, [HandlesResourceDisposal] AssetObjectQuery query, List< AssetGuid > result) |
Finds the asset GUIDs based on the provided query. More... | |
static List< AssetObject > | GetAllLoadedAssets< TResourceManager > (this TResourceManager resourceManager) |
Gets all loaded assets from the resource manager. More... | |
static AssetObject | GetAsset< TResourceManager > (this TResourceManager resourceManager, AssetRef assetRef) |
Returns the asset object of the provided asset reference. More... | |
static AssetObject | GetAsset< TResourceManager > (this TResourceManager resourceManager, string assetPath) |
Gets an asset based on its path. More... | |
static List< AssetObject > | GetAssets< TResourceManager > (this TResourceManager resourceManager, [HandlesResourceDisposal] AssetObjectQuery query) |
Gets the assets based on the provided query. More... | |
static void | GetAssets< TResourceManager > (this TResourceManager resourceManager, [HandlesResourceDisposal] AssetObjectQuery query, List< AssetObject > result) |
Gets the assets based on the provided query. More... | |
static List< AssetObject > | LoadAllAssets< TResourceManager > (this TResourceManager resourceManager) |
Loads all assets from the resource manager. More... | |
static bool | LoadAssetAsync< TResourceManager > (this TResourceManager resourceManager, string assetPath) |
Loads an asset asynchronously based on its path. More... | |
static bool | TryGetAsset< TResourceManager, T > (this TResourceManager resourceManager, AssetGuid assetGuid, out T result) |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed. More... | |
static bool | TryGetAsset< TResourceManager, T > (this TResourceManager resourceManager, AssetRef assetRef, out T result) |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed. More... | |
static bool | TryGetAsset< TResourceManager, T > (this TResourceManager resourceManager, AssetRef< T > assetRef, out T result) |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed. More... | |
static bool | TryGetAsset< TResourceManager, T > (this TResourceManager resourceManager, string assetPath, out T result) |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed. More... | |
Extension methods for IResourceManager.
|
inlinestatic |
Returns the asset object of the provided asset reference.
resourceManager | The resource manager. |
assetRef | The asset reference. |
null
, if not found.TResourceManager | : | IResourceManager |
|
inlinestatic |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed.
resourceManager | The resource manager. |
assetGuid | The guid of the asset. |
result | The result asset object. |
true
if the asset of type T exists.TResourceManager | : | IResourceManager | |
T | : | AssetObject |
|
inlinestatic |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed.
resourceManager | The resource manager. |
assetRef | The asset reference. |
result | The result asset object. |
true
if the asset of type T exists.TResourceManager | : | IResourceManager | |
T | : | AssetObject |
|
inlinestatic |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed.
resourceManager | The resource manager. |
assetRef | The asset reference. |
result | The result asset object. |
true
if the asset of type T exists.TResourceManager | : | IResourceManager | |
T | : | AssetObject |
|
inlinestatic |
Tries to get an asset of type T from the resource manager. Note that if type T is not the same as the asset type, the asset will remain loaded in the memory until it is disposed.
resourceManager | The resource manager. |
assetPath | The path of the asset. |
result | The result asset object. |
true
if the asset of type T exists.TResourceManager | : | IResourceManager | |
T | : | AssetObject |
|
inlinestatic |
Disposes an asset based on its path.
resourceManager | The resource manager. |
assetPath | The path of the asset. |
true
if the asset is disposed successfully.TResourceManager | : | IResourceManager |
|
inlinestatic |
Gets an asset based on its path.
resourceManager | The resource manager. |
assetPath | The path of the asset. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Loads an asset asynchronously based on its path.
resourceManager | The resource manager. |
assetPath | The path of the asset. |
true
if the asset is loaded successfully.TResourceManager | : | IResourceManager |
|
inlinestatic |
Finds the asset GUID based on the provided query.
resourceManager | The resource manager. |
query | The query to filter the assets. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Finds the asset GUIDs based on the provided query.
resourceManager | The resource manager. |
query | The query to filter the assets. |
result | The list to store the asset GUIDs. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Finds the asset GUIDs based on the provided query.
resourceManager | The resource manager. |
query | The query to filter the assets. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Gets the assets based on the provided query.
resourceManager | The resource manager. |
query | The query to filter the assets. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Gets the assets based on the provided query.
resourceManager | The resource manager. |
query | The query to filter the assets. |
result | The list to store the asset objects. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Loads all assets from the resource manager.
resourceManager | The resource manager. |
TResourceManager | : | IResourceManager |
|
inlinestatic |
Gets all loaded assets from the resource manager.
resourceManager | The resource manager. |
TResourceManager | : | IResourceManager |