drag and drop

This commit is contained in:
Rendo 2026-01-25 18:21:01 +05:00
commit 28b6b040b7
4 changed files with 88 additions and 14 deletions

View file

@ -18,13 +18,16 @@ impl Plugin for DevToolsPlugin {
fn setup_debug_menu(mut commands: Commands) {
let root = commands
.spawn(Node {
width: percent(100.),
height: percent(100.),
align_items: AlignItems::Start,
justify_content: JustifyContent::End,
..default()
})
.spawn((
Node {
width: percent(100.),
height: percent(100.),
align_items: AlignItems::Start,
justify_content: JustifyContent::End,
..default()
},
Pickable::IGNORE,
))
.id();
let panel = commands
.spawn((