Version 2.1.0.0

GlobalPersistentContext<T> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class GlobalPersistentContext<T> : GlobalPersistentContext
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; }

Methods

Create()
Creates a new persistent context object.
public static GlobalPersistentContext<T> Create()
ToString()
Formats a string with the time stamp, and the value.
public override string ToString()
Returns
System.String

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.