Skip to content

Is it possible to deactivate imgui in a specific build configuration ? #62

Answered by Tichau
Tichau asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again,

So, I spoke to fast, I did not tested enough what I've done ^^. My previous integration was only working for exported build. ImGui was not working when testing in editor.

I tried different approaches, it is quite difficult to add new define constants in a godot project (so it works well in editor too). So I used Godot feature tags that seems to exist to do this kind of stuff. Sadly for now feature tags cannot be set in editor (but it will starting from Godot 4.3, see issue #373).
So for now, I implemented it using negative logic, imgui is active by default, then I use a feature tag to deactivate it.

Here is what I've done:

  • I added the following choose statement in the project c…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Tichau
Comment options

@pkdawson
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Tichau
Comment options

Answer selected by Tichau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants