Class DevToolsLibrary¶
Namespace: Apogee.DevTools
Assembly: Apogee.DevTools.dll
The devtools table of scripts: when to draw, and what to show in the debug window.
[ScriptLibrary("devtools")]
public static class DevToolsLibrary
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
FrameOpen()¶
Whether an ImGui frame is open: imgui calls do something only then.
public static bool FrameOpen()
Returns¶
OnGui(ScriptFunction)¶
Registers a function the host calls every frame inside the ImGui frame; returns an id for remove_gui.
public static int OnGui(ScriptFunction callback)
Parameters¶
callback ScriptFunction
Returns¶
RemoveGui(int)¶
public static void RemoveGui(int id)
Parameters¶
id int
Watch(string, Value)¶
Shows a value under its name in the engine's debug window, updated whenever the script calls this again.
public static void Watch(string name, Value value)
Parameters¶
name string
value Value