Version 2.1.0.0

OdinPropertyResolver class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public abstract class OdinPropertyResolver
Inheritance
  • System.Object
  • OdinPropertyResolver

Constructors

OdinPropertyResolver()
protected OdinPropertyResolver()

Properties

ChildCount
public int ChildCount { get; }
HasChildCountConflict
public bool HasChildCountConflict { get; protected set; }
MaxChildCountSeen
public int MaxChildCountSeen { get; protected set; }
Property
public InspectorProperty Property { get; }
ResolverForType
public virtual Type ResolverForType { get; }

Methods

CalculateChildCount()
protected abstract int CalculateChildCount()
Returns
System.Int32

CanResolveForPropertyFilter(InspectorProperty)
public virtual bool CanResolveForPropertyFilter(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

ChildNameToIndex(String)
public abstract int ChildNameToIndex(string name)
Parameters
System.String name

Returns
System.Int32

Create(Type, InspectorProperty)
public static OdinPropertyResolver Create(Type resolverType, InspectorProperty property)
Parameters
System.Type resolverType

InspectorProperty property

Create<T>(InspectorProperty)
public static T Create<T>(InspectorProperty property)
    where T : OdinPropertyResolver, new()
Parameters
InspectorProperty property

Returns
T

Type Parameters
T

ForceUpdateChildCount()
public void ForceUpdateChildCount()
GetChildInfo(Int32)
public abstract InspectorPropertyInfo GetChildInfo(int childIndex)
Parameters
System.Int32 childIndex

Initialize()
protected virtual void Initialize()

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.