Namespace: | Sirenix.OdinInspector.Editor.ValueResolvers |
Assembly: | Sirenix.OdinInspector.Editor |
public sealed class ValueResolver<TResult> : ValueResolver
A ValueResolver resolves a string to a value of a given type, given an InspectorProperty instance to use as context. Call Get<TResult>(InspectorProperty, String) to get an instance of a ValueResolver.
Value resolvers are a globally extendable system that can be hooked into and modified or changed by creating and registering a ValueResolverCreator.
See Odin's tutorials for details and examples of how to use ValueResolvers.
public ValueResolver()
public ValueResolverFunc<TResult> Func
public override Type ValueType { get; }
public TResult GetValue(int selectionIndex = 0)
System.Int32 | selectionIndex | The selection index at which to get the value, in the case of multi-selection. Defaults to 0. |
TResult | The value that was gotten. |
public override object GetWeakValue(int selectionIndex = 0)
System.Int32 | selectionIndex | The selection index at which to get the value, in the case of multi-selection. Defaults to 0. |
System.Object | The value that was gotten. |