Class DebugUIDrawerFloatField
Builtin Drawer for Float Debug Items.
Inheritance
DebugUIDrawerFloatField
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[DebugUIDrawer(typeof(DebugUI.FloatField))]
public sealed class DebugUIDrawerFloatField : DebugUIFieldDrawer<float, DebugUI.FloatField, DebugStateFloat>
Methods
DoGUI(Rect, GUIContent, FloatField, DebugStateFloat)
Does the field of the given type
Declaration
protected override float DoGUI(Rect rect, GUIContent label, DebugUI.FloatField field, DebugStateFloat state)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The rect to draw the field |
GUIContent | label | The label for the field |
DebugUI.FloatField | field | The field |
DebugStateFloat | state | The state |
Returns
Type | Description |
---|---|
float | The current value from the UI |