Method Clear
| Improve this Doc View SourceClear()
Clears the entire cache, resulting in a rebuilt on the next access.
This can be useful if an asset is loaded late after a scene change and might be missing in the cache. Rebuilding can be an expensive operation, so use with caution.
This can be useful if an asset is loaded late after a scene change and might be missing in the cache. Rebuilding can be an expensive operation, so use with caution.
Declaration
public static void Clear()
Clear<T>()
Clears the cache for a specific type, resulting in a rebuilt on the next access.
This can be useful if an asset is loaded late after a scene change and might be missing in the cache. Rebuilding can be an expensive operation, so use with caution.
This can be useful if an asset is loaded late after a scene change and might be missing in the cache. Rebuilding can be an expensive operation, so use with caution.
Declaration
public static void Clear<T>() where T : UnityEngine.Object
Type Parameters
Name | Description |
---|---|
T | The type of object to clear the cache for |