Version 3.3.1.2

NamedValues struct

Namespace: Sirenix.OdinInspector.Editor.ValueResolvers
Assembly: Sirenix.OdinInspector.Editor
public struct NamedValues

Properties

Count
public int Count { get; }
Item[Int32]
public NamedValue this[int index] { get; }
Parameters
System.Int32 index

Methods

Add(NamedValue)
public void Add(NamedValue value)
Parameters
NamedValue value

Add(String, Type, ValueResolverFunc<Object>)
public void Add(string name, Type type, ValueResolverFunc<object> valueGetter)
Parameters
System.String name

System.Type type

Sirenix.OdinInspector.Editor.ValueResolvers.ValueResolverFunc<System.Object> valueGetter

Add(String, Type, Object)
public void Add(string name, Type type, object value)
Parameters
System.String name

System.Type type

System.Object value

GetValue(String)
public object GetValue(string name)
Parameters
System.String name

Returns
System.Object

GetValueOverviewString()
public string GetValueOverviewString()
Returns
System.String

Set(String, Object)
public void Set(string name, object value)
Parameters
System.String name

System.Object value

TryGetValue(String, out NamedValue)
public bool TryGetValue(string name, out NamedValue value)
Parameters
System.String name

NamedValue value

Returns
System.Boolean

UpdateValues(ref ValueResolverContext, Int32)
public void UpdateValues(ref ValueResolverContext context, int selectionIndex)
Parameters
ValueResolverContext context

System.Int32 selectionIndex