-
Notifications
You must be signed in to change notification settings - Fork 28
GDScript
Patrick Dawson edited this page Apr 28, 2024
·
6 revisions
The GDExtension offers partial bindings for GDScript. If there's an ImGui feature you want which isn't available in GDScript, please submit an issue.
Where the ImGui API uses pointers to pass a single variable by reference, the GDScript bindings use one-element arrays, similar to the progress
parameter in ResourceLoader.load_threaded_get_status
.
For example:
var mynum := [42]
func _process(_delta):
ImGui.Begin("window name")
ImGui.DragInt("my number", mynum)
ImGui.Text("number = %d" % mynum[0])
ImGui.End()
TODO: link example