Version 3.0.0.2

ValueResolverCreator class

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

Constructors

ValueResolverCreator()
protected ValueResolverCreator()

Methods

GetFailedResolverFunc<TResult>()
protected static ValueResolverFunc<TResult> GetFailedResolverFunc<TResult>()
Returns
Sirenix.OdinInspector.Editor.ValueResolvers.ValueResolverFunc<TResult>

Type Parameters
TResult

GetPossibleMatchesString(ref ValueResolverContext)
public abstract string GetPossibleMatchesString(ref ValueResolverContext context)
Parameters
ValueResolverContext context

Returns
System.String

GetResolver(Type, InspectorProperty, String)
public static ValueResolver GetResolver(Type resultType, InspectorProperty property, string resolvedString)
Parameters
System.Type resultType

InspectorProperty property

System.String resolvedString

Returns
ValueResolver

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

InspectorProperty property

System.String resolvedString

NamedValue[] namedArgs

Returns
ValueResolver

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

InspectorProperty property

System.String resolvedString

System.Object fallbackValue

Returns
ValueResolver

GetResolver(Type, InspectorProperty, String, Object, NamedValue[])
public static ValueResolver GetResolver(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

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

System.String resolvedString

Returns
ValueResolver<TResult>

Type Parameters
TResult

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

System.String resolvedString

TResult fallbackValue

Returns
ValueResolver<TResult>

Type Parameters
TResult

GetResolver<TResult>(InspectorProperty, String, TResult, NamedValue[])
public static ValueResolver<TResult> GetResolver<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

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

System.String resolvedString

NamedValue[] namedArgs

Returns
ValueResolver<TResult>

Type Parameters
TResult

Register(ValueResolverCreator, Double)
public static void Register(ValueResolverCreator valueResolverCreator, double order = 0)
Parameters
ValueResolverCreator valueResolverCreator

System.Double order

TryCreateResolverFunc<TResult>(ref ValueResolverContext)
public abstract ValueResolverFunc<TResult> TryCreateResolverFunc<TResult>(ref ValueResolverContext context)
Parameters
ValueResolverContext context

Returns
Sirenix.OdinInspector.Editor.ValueResolvers.ValueResolverFunc<TResult>

Type Parameters
TResult