Version 2.1.0.0

InspectorPropertyValueGetter<TReturnType> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class InspectorPropertyValueGetter<TReturnType>
Helper class to get values from InspectorProperties.
Inheritance
  • System.Object
  • InspectorPropertyValueGetter<TReturnType>

Type Parameters

TReturnType

Constructors

InspectorPropertyValueGetter(InspectorProperty, String, Boolean, Boolean)
Creates a StringMemberHelper to get a display string.
public InspectorPropertyValueGetter(InspectorProperty property, string memberName, bool allowInstanceMember = true, bool allowStaticMember = true)
Parameters
InspectorProperty property

The property.

System.String memberName

The member name.

System.Boolean allowInstanceMember

If true, then StringMemberHelper will look for instance members.

System.Boolean allowStaticMember

If true, then StringMemberHelper will look for static members.

Exceptions
System.InvalidOperationException

Require either allowInstanceMember or allowStaticMember to be true.

Fields

IsValueType
public static readonly bool IsValueType

Properties

ErrorMessage
If any error occurred while looking for members, it will be stored here.
public string ErrorMessage { get; }

Methods

GetValue()
Gets the value.
public TReturnType GetValue()
Returns
TReturnType

GetValues()
Gets all values from all targets.
public IEnumerable<TReturnType> GetValues()
Returns
System.Collections.Generic.IEnumerable<TReturnType>