Skip to content

Interlude.Tick.Extra.DebugUI.Vector2Field

interludesoftware.tick

Interlude.Tick.Extra.DebugUI

Vector2Field Class

public static class Vector2Field

Inheritance System.Object → Vector2Field

Methods

Vector2Field.Do(UI, string, Vector2, float) Method

Draws a two-component vector field with X and Y axis cells. Returns true when any component changes.

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

Parameters

ui UI

id System.String

value UnityEngine.Vector2

step System.Single

Returns

System.Boolean

Vector2Field.DoLabelled(UI, string, string, Vector2, float) Method

Draws a label column followed by a two-component vector field. Returns true when any component changes.

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

Parameters

ui UI

id System.String

label System.String

value UnityEngine.Vector2

step System.Single

Returns

System.Boolean