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.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.