Show / Hide Table of Contents

Method Clear

| Edit this page View Source

Clear()

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.
Declaration
public static void Clear()
| Edit this page View Source

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.
Declaration
public static void Clear<T>() where T : UnityEngine.Object
Type Parameters
Name Description
T The type of object to clear the cache for
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾