Enum ResourceLoader.CacheMode
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum ResourceLoader.CacheMode : long
Fields
Ignore = 0Neither the main resource (the one requested to be loaded) nor any of its subresources are retrieved from cache nor stored into it. Dependencies (external resources) are loaded with Reuse.
IgnoreDeep = 3Like Ignore, but propagated recursively down the tree of dependencies (external resources).
Replace = 2Like Reuse, but the cache is checked for the main resource (the one requested to be loaded) as well as for each of its subresources. Those already in the cache, as long as the loaded and cached types match, have their data refreshed from storage into the already existing instances. Otherwise, they are recreated as completely new objects.
ReplaceDeep = 4Like Replace, but propagated recursively down the tree of dependencies (external resources).
Reuse = 1The main resource (the one requested to be loaded), its subresources, and its dependencies (external resources) are retrieved from cache if present, instead of loaded. Those not cached are loaded and then stored into the cache. The same rules are propagated recursively down the tree of dependencies (external resources).