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(IList<Object>)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
[Obsolete]
public static void ClearDependencyCacheAsync(IList<object> keys)
Parameters
Type | Name | Description |
---|---|---|
IList<Object> | 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(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, Boolean)
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. |
Boolean | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | 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>, Boolean)
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. |
Boolean | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | 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<Object>, Boolean)
Clear the cached AssetBundles for a list of Addressable keys. Operation may be performed async if Addressables is initializing or updating.
Declaration
[Obsolete]
public static AsyncOperationHandle<bool> ClearDependencyCacheAsync(IList<object> keys, bool autoReleaseHandle)
Parameters
Type | Name | Description |
---|---|---|
IList<Object> | keys | The keys to clear the cache for. |
Boolean | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | 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, Boolean)
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. |
Boolean | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | 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, Boolean)
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. |
Boolean | autoReleaseHandle | If true, the returned AsyncOperationHandle will be released on completion. |
Returns
Type | Description |
---|---|
AsyncOperationHandle<Boolean> | 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.