Hi, I am working on a Box2d Playground which is more and more like a level editor.
For now I am using Imgui to add floating windows, but I want really to split the screen with an UI part on left to show controls / properties (with Druid or ImGui) and have right side with the actual game scene (the collection where I create gameobject via factories and box2d scripting). A bit like Defold editor.
And there is an Editing mode and a Play mode, so in play mode I want the UI to vanish. In the end it could feel like a 2d Little big planet kind of level editor.
The scene part will have a camera that can move/zoom etc.
All examples I have seen for GUI are added on top of the game, but the game is still full screen.
How can I make the game collection to show only in a specifique viewport, and how to handle input on game viewport versus UI viewport?
Must I use render targets to split the rendering in 2 and compose it in a quad afterward?
The only place I have seen such thing is the Panthera Editor, but I think it is cheating as is full GUI in fact even when editing game objects…