Version 3.3.0.1

GlobalPersistentContext<T> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[AlwaysFormatsSelf]
public sealed class GlobalPersistentContext<T> : GlobalPersistentContext, ISelfFormatter
Context that persists across reloading and restarting Unity.
Inheritance

Type Parameters

T

The type of the context value.

Constructors

GlobalPersistentContext()
public GlobalPersistentContext()

Properties

Value
The value of the context.
public T Value { get; set; }
ValueType
public override Type ValueType { get; }

Methods

Create()
Creates a new persistent context object.
public static GlobalPersistentContext<T> Create()
Deserialize(IDataReader)
public override void Deserialize(IDataReader reader)
Parameters
Sirenix.Serialization.IDataReader reader

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

ToString()
Formats a string with the time stamp, and the value.
public override string ToString()
Returns
System.String