Version 3.3.0.1

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; }
IsCollection
public virtual bool IsCollection { get; }
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(ref StringSlice)
public virtual int ChildNameToIndex(ref StringSlice name)
Parameters
StringSlice name

Returns
System.Int32

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()