Summary
[Editor-Only]
Draws a
UnityEditor.EditorGUI.FloatField(UnityEngine.Rect,UnityEngine.GUIContent,System.Single)
with an alternate string when it is not
selected (for example, "1" might become "1s" to indicate "seconds").
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Units - Containing Type
- UnitsAttribute
Syntax
public static float DoSpecialFloatField(Rect area, GUIContent label, float value, CompactUnitConversionCache toString)
Remarks
This method treats most
UnityEngine.EventType
s 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 | Compact |
Return Value
Type | Description |
---|---|
float |