Version 2.1.0.0

UnityPropertyGetterSetter<TOwner, TValue> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class UnityPropertyGetterSetter<TOwner, TValue> : IValueGetterSetter<TOwner, TValue>, IValueGetterSetter
Inheritance
  • System.Object
  • UnityPropertyGetterSetter<TOwner, TValue>

Type Parameters

TOwner

TValue

Constructors

UnityPropertyGetterSetter(InspectorProperty)
public UnityPropertyGetterSetter(InspectorProperty property)
Parameters
InspectorProperty property

Properties

IsReadonly
public bool IsReadonly { get; }
OwnerType
public Type OwnerType { get; }
ValueType
public Type ValueType { get; }

Methods

GetValue(ref TOwner)
public TValue GetValue(ref TOwner owner)
Parameters
TOwner owner

Returns
TValue

GetValue(Object)
public object GetValue(object owner)
Parameters
System.Object owner

Returns
System.Object

SetValue(ref TOwner, TValue)
public void SetValue(ref TOwner owner, TValue value)
Parameters
TOwner owner

TValue value

SetValue(Object, Object)
public void SetValue(object owner, object value)
Parameters
System.Object owner

System.Object 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.