Version 3.3.1.2

GlobalPersistentContext class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[AlwaysFormatsSelf]
public abstract class GlobalPersistentContext : ISelfFormatter
Context that persists across reloading and restarting Unity.
Inheritance
  • System.Object
  • GlobalPersistentContext

Constructors

GlobalPersistentContext()
Instatiates a persistent context.
protected GlobalPersistentContext()

Properties

TimeStamp
Time stamp for when the persistent context value was last used. Used for purging unused context.
[OdinSerialize]
public long TimeStamp { get; protected set; }
ValueType
public abstract Type ValueType { get; }

Methods

Deserialize(IDataReader)
public abstract void Deserialize(IDataReader reader)
Parameters
Sirenix.Serialization.IDataReader reader

Serialize(IDataWriter)
public abstract void Serialize(IDataWriter writer)
Parameters
Sirenix.Serialization.IDataWriter writer

UpdateTimeStamp()
Updates the time stamp to now.
protected void UpdateTimeStamp()
Derived Classes