Scene Panel Drag & Drop (ImGui) | Coding a 2D Game Engine in Java #43 @GamesWithGabe
Scene Panel Drag & Drop (ImGui) | Coding a 2D Game Engine in Java #43  @GamesWithGabe
Uploaded March 2021 | Updated September 2026, 2 weeks ago
Join the Discord: discord.gg/4tHeAkxNg7

In this episode, I explain how drag and drop works in ImGui. This consists of understanding what the global payload contexts are in ImGui, and how to set the payloads and accept different payload types in your code. I also go over fixing the viewports and docking, fixing a bug in our scene panel, and implementing the first stage of drag and drop in our scene panel.

Source Code: github.com/codingminecraft/MarioYoutube/tree/974e2e06d458ccdfcff7bb36597d1d84479fe947

0:00 In This Episode
1:04 ImGui Drag and Drop
3:19 Fix Viewports and Docking
4:24 Editing the GameObject Name
8:32 Implementing Drag & Drop in Scene Panel
15:05 Fixing ID Bug in Scene Panel

---------------------------------------------------------------------
Website: ambrosiogabe.github.io
Github: github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: gameenginebook.com
Game Physics Cookbook (Read this before the next physics book): amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): gameprogrammingpatterns.com

My Recommended Beginning Game Programming Books:
JavaScript Game Design: apress.com/gp/book/9781430247166

My Recommended Java Books:
Data Structures/Algorithms: amazon.com/Data-Structures-Algorithms-Java-6th-ebook/dp/B00JDRQF8C
LWJGL (Free, but I haven't read this thoroughly): lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content
Scene Panel Drag & Drop (ImGui) | Coding a 2D Game Engine in Java #43Pointers in 16 Minutes | C++ For Java Devs Ep. 8Linking and Header Files  | C++ For Java Devs Ep. 3Maintenance | Coding Geometry Dash in Java #10How to Use Box2D Physics | Coding a 2D Game Engine in Java #48Switching Languages | Cocoa Engine Devlog #2How Shaders Work (in OpenGL) | How to Code Minecraft Ep. 3Translate and Scale Gizmo | Coding a 2D Game Engine in Java #35Moving the Snake | Java Snake Part 6Spritesheets | Coding Geometry Dash in Java #6Bubble Sort | Python for Absolute Beginners #11SOLID Stinks! How to Write Actual Clean Code
GamesWithGabe |

Scene Panel Drag & Drop (ImGui) | Coding a 2D Game Engine in Java #43

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER