Version 3.0.0.2

ValueResolver class

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

Constructors

ValueResolver()
protected ValueResolver()

Fields

Context
public ValueResolverContext Context

Properties

ErrorMessage
public string ErrorMessage { get; }
HasError
public bool HasError { get; }
ValueType
public abstract Type ValueType { get; }

Methods

DrawError()
public void DrawError()
DrawErrors(ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver)
public static void DrawErrors(ValueResolver r1 = null, ValueResolver r2 = null, ValueResolver r3 = null, ValueResolver r4 = null, ValueResolver r5 = null, ValueResolver r6 = null, ValueResolver r7 = null, ValueResolver r8 = null)
DrawErrors(ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver[])
public static void DrawErrors(ValueResolver r1 = null, ValueResolver r2 = null, ValueResolver r3 = null, ValueResolver r4 = null, ValueResolver r5 = null, ValueResolver r6 = null, ValueResolver r7 = null, ValueResolver r8 = null, params ValueResolver[] remainder)
Get(Type, InspectorProperty, String)
public static ValueResolver Get(Type resultType, InspectorProperty property, string resolvedString)
Parameters
System.Type resultType

InspectorProperty property

System.String resolvedString

Returns
ValueResolver

Get(Type, InspectorProperty, String, NamedValue[])
public static ValueResolver Get(Type resultType, InspectorProperty property, string resolvedString, params NamedValue[] namedArgs)
Parameters
System.Type resultType

InspectorProperty property

System.String resolvedString

NamedValue[] namedArgs

Returns
ValueResolver

Get(Type, InspectorProperty, String, Object)
public static ValueResolver Get(Type resultType, InspectorProperty property, string resolvedString, object fallbackValue)
Parameters
System.Type resultType

InspectorProperty property

System.String resolvedString

System.Object fallbackValue

Returns
ValueResolver

Get(Type, InspectorProperty, String, Object, NamedValue[])
public static ValueResolver Get(Type resultType, InspectorProperty property, string resolvedString, object fallbackValue, params NamedValue[] namedArgs)
Parameters
System.Type resultType

InspectorProperty property

System.String resolvedString

System.Object fallbackValue

NamedValue[] namedArgs

Returns
ValueResolver

Get<TResult>(InspectorProperty, String)
public static ValueResolver<TResult> Get<TResult>(InspectorProperty property, string resolvedString)
Parameters
InspectorProperty property

System.String resolvedString

Returns
ValueResolver<TResult>

Type Parameters
TResult

Get<TResult>(InspectorProperty, String, TResult)
public static ValueResolver<TResult> Get<TResult>(InspectorProperty property, string resolvedString, TResult fallbackValue)
Parameters
InspectorProperty property

System.String resolvedString

TResult fallbackValue

Returns
ValueResolver<TResult>

Type Parameters
TResult

Get<TResult>(InspectorProperty, String, TResult, NamedValue[])
public static ValueResolver<TResult> Get<TResult>(InspectorProperty property, string resolvedString, TResult fallbackValue, params NamedValue[] namedArgs)
Parameters
InspectorProperty property

System.String resolvedString

TResult fallbackValue

NamedValue[] namedArgs

Returns
ValueResolver<TResult>

Type Parameters
TResult

Get<TResult>(InspectorProperty, String, NamedValue[])
public static ValueResolver<TResult> Get<TResult>(InspectorProperty property, string resolvedString, params NamedValue[] namedArgs)
Parameters
InspectorProperty property

System.String resolvedString

NamedValue[] namedArgs

Returns
ValueResolver<TResult>

Type Parameters
TResult

GetCombinedErrors(ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver)
public static string GetCombinedErrors(ValueResolver r1 = null, ValueResolver r2 = null, ValueResolver r3 = null, ValueResolver r4 = null, ValueResolver r5 = null, ValueResolver r6 = null, ValueResolver r7 = null, ValueResolver r8 = null)
Returns
System.String

GetCombinedErrors(ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver, ValueResolver[])
public static string GetCombinedErrors(ValueResolver r1, ValueResolver r2, ValueResolver r3, ValueResolver r4, ValueResolver r5, ValueResolver r6, ValueResolver r7, ValueResolver r8, params ValueResolver[] remainder)
Returns
System.String

GetForString(InspectorProperty, String)
public static ValueResolver<string> GetForString(InspectorProperty property, string resolvedString)
Parameters
InspectorProperty property

System.String resolvedString

Returns
ValueResolver<System.String>

GetForString(InspectorProperty, String, NamedValue[])
public static ValueResolver<string> GetForString(InspectorProperty property, string resolvedString, params NamedValue[] namedArgs)
Parameters
InspectorProperty property

System.String resolvedString

NamedValue[] namedArgs

Returns
ValueResolver<System.String>

GetWeakValue(Int32)
public abstract object GetWeakValue(int selectionIndex = 0)
Parameters
System.Int32 selectionIndex

Returns
System.Object

Derived Classes