Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public class PersistentContextCache
public int CacheSize { get; }
true
then persistent context is disabled entirely.
[ShowInInspector]
public bool EnableCaching { get; set; }
public int EntryCount { get; }
public static PersistentContextCache Instance { get; }
[ShowInInspector]
[EnableIf("EnableCaching")]
[CustomValueDrawer("DrawCacheSize")]
[SuffixLabel("KB", false, Overlay = true)]
public int MaxCacheByteSize { get; }
true
the context will be saved to a file in the temp directory.
[ShowInInspector]
[EnableIf("EnableCaching")]
public bool WriteToFile { get; set; }
[Button(ButtonSizes.Medium)]
[ButtonGroup("_DefaultGroup", 0F)]
[EnableIf("EnableCaching")]
public void DeleteCache()