segross / UnrealImGui

Unreal plug-in that integrates Dear ImGui framework into Unreal Engine 4.
MIT License
666 stars 211 forks source link

Toggle Input by code #82

Closed mdblabs closed 1 year ago

mdblabs commented 1 year ago

Hi, first of all, thank you for this great plug-in! It made my day.

I'm using it in UE4.27 and I was able to toggle the input using Project Properties (defining a Key combination to do so).

But now, I want to do the same, by code, but seems it's not working or I'm doing sth wrong.

I've used FImGuiModuleProperties, and then called SetInputEnabled(true). Like this:

this->GuiModuleProperties.SetInputEnabled(true);

It compiles and runs, but menu bar still only rendering and no accepting inputs. Any idea? In the README it's mentioned that also can be changed on a Properties file, but couldn't find it on the tree.

Thank so much!

mdblabs commented 1 year ago

I solved it. I upgraded the plug-in to add this option and to have it available on the Project's Settings. Now it's working!