UnitySignals
Signals for Unity3D
Loading...
Searching...
No Matches
Signals.ValueReferenceDrawer Class Referenceabstract

Abstract base class for custom drawers for classes inheriting from ValueReference. More...

Inheritance diagram for Signals.ValueReferenceDrawer:
Signals.Common.BoolValueReferenceDrawer Signals.Common.CharValueReferenceDrawer Signals.Common.FloatValueReferenceDrawer Signals.Common.IntValueReferenceDrawer Signals.Common.QuaternionValueReferenceDrawer Signals.Common.StringValueReferenceDrawer Signals.Common.Vector2IntValueReferenceDrawer Signals.Common.Vector2ValueReferenceDrawer Signals.Common.Vector3IntValueReferenceDrawer Signals.Common.Vector3ValueReferenceDrawer Signals.Common.Vector4ValueReferenceDrawer

Public Member Functions

override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 
override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 

Protected Member Functions

virtual void LocalValueField (Rect position, SerializedProperty localValue)
 Override this method to implement a custom inspector for the ValueReference.LocalValue.
 
virtual float GetLocalValueFieldHeight ()
 Override this if your LocalValueField is higher than one line.
 

Detailed Description

Abstract base class for custom drawers for classes inheriting from ValueReference.

Member Function Documentation

◆ GetLocalValueFieldHeight()

virtual float Signals.ValueReferenceDrawer.GetLocalValueFieldHeight ( )
protectedvirtual

Override this if your LocalValueField is higher than one line.

Returns
The LocalValueField's height.

◆ GetPropertyHeight()

override float Signals.ValueReferenceDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)

◆ LocalValueField()

virtual void Signals.ValueReferenceDrawer.LocalValueField ( Rect  position,
SerializedProperty  localValue 
)
protectedvirtual

Override this method to implement a custom inspector for the ValueReference.LocalValue.

Parameters
positionThe field's position.
localValueThe SerializedProperty containing the value.

Reimplemented in Signals.Common.QuaternionValueReferenceDrawer, and Signals.Common.Vector4ValueReferenceDrawer.

◆ OnGUI()

override void Signals.ValueReferenceDrawer.OnGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)

The documentation for this class was generated from the following file: