imgui-godot icon indicating copy to clipboard operation
imgui-godot copied to clipboard

Usable with GDScript

Open jokeruarwentto opened this issue 2 years ago • 1 comments

Title says all, it is possible to get a usable version for GDScript? Thanks

jokeruarwentto avatar Oct 19 '22 14:10 jokeruarwentto

I haven't tried it, but someone else made a C++ module for this for Godot 3.x: https://github.com/Blackdrop-Interactive-AB/godot-dear-imgui/

Making GDScript bindings currently requires a C++ module or GDExtension, which I'm not doing because it's more complicated for everyone to use.

However, C# GDExtension support is planned for Godot 4:

One of the big changes that we are still working on is support for writing GDExtensions in C#. With GDExtension, C# classes will be registered in the engine and work as the built-in classes do, which should improve the support of C# nodes and resources throughout the engine.

With that, I think I could make a good GDScript interface. Though it's not simple, because GDScript doesn't really have pointer/reference types for parameters, which the Dear ImGui API uses a lot.

So I'm leaving this issue open, but I have to wait for that. Not sure if that will be in Godot 4.0, or 4.1 or later.

pkdawson avatar Oct 19 '22 18:10 pkdawson

Implemented in v5.0.0

pkdawson avatar May 03 '24 21:05 pkdawson