Namespace: | Sirenix.OdinInspector.Editor.ValueResolvers |
Assembly: | Sirenix.OdinInspector.Editor |
public struct ValueResolverContext
public string ErrorMessage
public bool ErrorMessageIsDueToException
public object FallbackValue
public bool HasFallbackValue
public bool LogExceptions
public NamedValues NamedValues
public InspectorProperty Property
public InspectorProperty ContextProperty { get; }
public bool IsResolved { get; }
public Type ParentType { get; }
public string ResolvedString { get; set; }
public Type ResultType { get; set; }
public bool SyncRefParametersWithNamedValues { get; set; }
public void AddDefaultContextValues()
public static ValueResolverContext CreateDefault(InspectorProperty property, Type resultType, string resolvedString, params NamedValue[] namedValues)
InspectorProperty | property | |
System.Type | resultType | |
System.String | resolvedString | |
NamedValue[] | namedValues |
ValueResolverContext |
public static ValueResolverContext CreateDefault<T>(InspectorProperty property, string resolvedString, T fallbackValue, params NamedValue[] namedValues)
InspectorProperty | property | |
System.String | resolvedString | |
T | fallbackValue | |
NamedValue[] | namedValues |
ValueResolverContext |
T |
public static ValueResolverContext CreateDefault<T>(InspectorProperty property, string resolvedString, params NamedValue[] namedValues)
InspectorProperty | property | |
System.String | resolvedString | |
NamedValue[] | namedValues |
ValueResolverContext |
T |
public object GetParentValue(int selectionIndex)
System.Int32 | selectionIndex | The selection index of the parent value to get. |
System.Object |
public void MarkResolved()
public void SetParentValue(int selectionIndex, object value)
System.Int32 | selectionIndex | The selection index of the parent value to set. |
System.Object | value | The value to set. |