OdinDrawerExtensions class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class OdinDrawerExtensions
OdinDrawer extensions.
  • System.Object
  • OdinDrawerExtensions


GetPersistentValue<T>(OdinDrawer, String, T)
Gets a persistent value that will survive past multiple Unity Editor Application sessions. The value is stored in the PersistentContextCache, which has a customizable max cache size.
public static LocalPersistentContext<T> GetPersistentValue<T>(this OdinDrawer drawer, string key, T defaultValue = null)
OdinDrawer drawer

System.String key

T defaultValue

Type Parameters

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.