Version 2.1.0.0

PropertyContext<T> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class PropertyContext<T>

A contextual value attached to an InspectorProperty, mapped to a key, contained in a PropertyContextContainer.

Inheritance
  • System.Object
  • PropertyContext<T>

Type Parameters

T

Fields

Value
The contained value.
public T Value

Methods

Create()
Creates a new PropertyContext.
public static PropertyContext<T> Create()
Returns
PropertyContext<T>

ToString()
Returns a System.String that represents this instance, of the format "PropertyContext<T>: Value.ToString()".
public override string ToString()
Returns
System.String

A System.String that represents this instance.

Operators

Explicit(PropertyContext<T> to T)
Performs an explicit conversion from PropertyContext<T> to .
public static explicit operator T(PropertyContext<T> context)
Parameters
PropertyContext<T> context

The context.

Returns
T

The result of the conversion.

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.