Skip to content

Interlude.Tick.Extra.DebugUI.RectField

interludesoftware.tick

Interlude.Tick.Extra.DebugUI

RectField Class

public static class RectField

Inheritance System.Object → RectField

Methods

RectField.Do(UI, string, Rect, float) Method

Draws a two-row rect editor: top row = X/Y, bottom row = W/H. Returns true if the value changed.

public static bool Do(Interlude.Tick.UI ui, string id, ref Rect value, float step=0.1f);

Parameters

ui UI

id System.String

value UnityEngine.Rect

step System.Single

Returns

System.Boolean

RectField.DoLabelled(UI, string, string, Rect, float) Method

Draws a labelled two-row rect editor. Returns true if the value changed.

public static bool DoLabelled(Interlude.Tick.UI ui, string id, string label, ref Rect value, float step=0.1f);

Parameters

ui UI

id System.String

label System.String

value UnityEngine.Rect

step System.Single

Returns

System.Boolean