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

Channel:
Subscribers:
59,400
Published on ● Video Link: https://www.youtube.com/watch?v=vt_KGvT525w



Category:
Guide
Duration: 18:11
5,102 views
111


Join the Discord: https://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: https://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: https://ambrosiogabe.github.io/
Github: https://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: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

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

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structures-Algorithms-Java-6th-ebook/dp/B00JDRQF8C
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content/







Tags:
gameswithgabe
games with gabe
lwjgl3
scene tree
how to code a scene tree
coding a scene heirarchy panel
drag and drop imgui
drag and drop scene tree
coding a scene tree
how to code a scene panel
coding a 2d game engine
game scene in java
opengl fonts
game engine
how to make a level editor
how to code a game engine
imgui
lwjgl
java
mario