Version 2.1.0.0

IValueGetterSetter interface

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public interface IValueGetterSetter
Used by all InspectorProperty to tell Odin how to set or get a value on any given property.

Properties

IsReadonly
Whether the value is readonly.
bool IsReadonly { get; }
OwnerType
Gets the type of the owner.
Type OwnerType { get; }
ValueType
Gets the type of the value.
Type ValueType { get; }

Methods

GetValue(Object)
Gets the value from a given weakly typed owner.
object GetValue(object owner)
Parameters
System.Object owner

The weakly typed owner.

Returns
System.Object

The found value.

SetValue(Object, Object)
Sets the weakly typed value on a given weakly typed owner.
void SetValue(object owner, object value)
Parameters
System.Object owner

The owner.

System.Object value

The value.