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