Version 2.1.0.0

IValueGetterSetter<TOwner, TValue> interface

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public interface IValueGetterSetter<TOwner, TValue> : IValueGetterSetter
Used by all AliasGetterSetter<TOwner, TValue, TPropertyOwner, TPropertyValue> to tell Odin how to set or get a value on any given property.

Type Parameters

TOwner

TValue

Methods

GetValue(ref TOwner)
Gets the value from a given owner.
TValue GetValue(ref TOwner owner)
Parameters
TOwner owner

The owner.

Returns
TValue

SetValue(ref TOwner, TValue)
Sets the value on a given owner.
void SetValue(ref TOwner owner, TValue value)
Parameters
TOwner owner

The owner.

TValue value

The value.