segross / UnrealImGui

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

AddEditorImGuiDelegate not work? #70

Open chexiongsheng opened 2 years ago

chexiongsheng commented 2 years ago

The same callback register with diffrence api, AddMultiContextImGuiDelegate & AddWorldImGuiDelegate will dispaly UI in game as expected, but display nothing in editor for AddEditorImGuiDelegate

//DelegateHandle = FImGuiModule::Get().AddMultiContextImGuiDelegate(FImGuiDelegate::CreateUObject(this, &UDearImGuiManager::OnImGuiDraw)); // display in game ui
//DelegateHandle = FImGuiModule::Get().AddWorldImGuiDelegate(FImGuiDelegate::CreateUObject(this, &UDearImGuiManager::OnImGuiDraw)); // display in game ui
DelegateHandle = FImGuiModule::Get().AddEditorImGuiDelegate(FImGuiDelegate::CreateUObject(this, &UDearImGuiManager::OnImGuiDraw)); // display nothing