feat: compose interactive world ui across nested 3d viewports

This commit is contained in:
2026-11-11 00:08:23 +08:00
parent ad2c01bc29
commit 15fc01542c
27 changed files with 1412 additions and 84 deletions
+3 -1
View File
@@ -214,7 +214,8 @@ impl NativeCallable for Method {
} else {
node.children()
.iter()
.map(|child| {
.enumerate()
.map(|(child_index, child)| {
size(
child,
layout::occurrence_constraints(
@@ -226,6 +227,7 @@ impl NativeCallable for Method {
Size { width, height },
),
Size { width, height },
child_index,
),
)
})