UnitsAttributeDrawer.

DoSpecialFloatField(Rect, GUIContent, float, CompactUnitConversionCache) Method

Summary

Draws a UnityEditor.EditorGUI.FloatField(UnityEngine.Rect,UnityEngine.GUIContent,System.Single) with an alternate string when it's not selected (for example, "1" might display as "1s" to indicate "seconds").
Assembly
Animancer.dll
Namespace
Animancer.Units.Editor
Containing Type
UnitsAttributeDrawer

Syntax

public static float DoSpecialFloatField(Rect area, GUIContent label, float value, CompactUnitConversionCache toString)

Remarks

This method treats most UnityEngine.EventTypes normally, but for UnityEngine.EventType.Repaint it instead draws a text field with the converted string.

Parameters

Name Type Description
area Rect
label GUIContent
value float
toString CompactUnitConversionCache

Return Value

Type Description
float