Method ClearDependencyCacheAsync
ClearDependencyCacheAsync(object)
Clear the cached AssetBundles for a given key. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static void ClearDependencyCacheAsync(object key)
Parameters
Type | Name | Description |
---|---|---|
object | key | The key to clear the cache for. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(IList<IResourceLocation>)
Clear the cached AssetBundles for a list of Addressable locations. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static void ClearDependencyCacheAsync(IList<IResourceLocation> locations)
Parameters
Type | Name | Description |
---|---|---|
IList<IResourceLocation> | locations | The locations to clear the cache for. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(IEnumerable)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static void ClearDependencyCacheAsync(IEnumerable keys)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | keys | The keys to clear the cache for. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(string)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static void ClearDependencyCacheAsync(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to clear the cache for. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(object, bool)
Clear the cached AssetBundles for a given key. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static AsyncOperationHandle<bool> ClearDependencyCacheAsync(object key, bool autoReleaseHandle)
Parameters
Type | Name | Description |
---|---|---|
object | key | The key to clear the cache for. |
bool | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<bool> | The operation handle for the request. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(IList<IResourceLocation>, bool)
Clear the cached AssetBundles for a list of Addressable locations. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static AsyncOperationHandle<bool> ClearDependencyCacheAsync(IList<IResourceLocation> locations, bool autoReleaseHandle)
Parameters
Type | Name | Description |
---|---|---|
IList<IResourceLocation> | locations | The locations to clear the cache for. |
bool | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<bool> | The operation handle for the request. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(IEnumerable, bool)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static AsyncOperationHandle<bool> ClearDependencyCacheAsync(IEnumerable keys, bool autoReleaseHandle)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | keys | The keys to clear the cache for. |
bool | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<bool> | The operation handle for the request. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.
ClearDependencyCacheAsync(string, bool)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
public static AsyncOperationHandle<bool> ClearDependencyCacheAsync(string key, bool autoReleaseHandle)
Parameters
Type | Name | Description |
---|---|---|
string | key | The keys to clear the cache for. |
bool | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<bool> | The operation handle for the request. |
Remarks
Clear all cached AssetBundles WARNING: This will cause all asset bundles represented by the passed-in parameters to be cleared and require re-downloading.