mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 17:45:25 -04:00
98af5082fe
Add a Debug-icon button next to the Lightbulb in the root row of the Layers tree view (only when in embedded-game / in-app editor mode). Clicking it toggles the local state `areCollisionsShownInEditor` in SceneEditor and broadcasts a `set3DCollisionsShownInEditor` message to the embedded preview frames via `previewDebuggerServer`. The runtime debugger client receives the command and calls `enableDebugDraw3D` on the edited instance container, reusing the default color and depth-test settings. Props are threaded through the `EditorsDisplay` interface, both mosaic and swipeable-drawer displays, plus the LayersList story mock.