#ImageNode and Node Component Order is change icon position, is this is bug?

6 messages · Page 1 of 1 (latest)

visual belfry
rapid spoke
#

found the error

#

wrap the Node and ImageNode in parenthesis

#
children![(
    Node {
        height: Val::Percent(100.),
        width: Val::Percent(100.),
        ..default()
    },
    ImageNode {
        image: image_handle.clone(),
        image_mode: NodeImageMode::Auto,
        ..default()
    },
)],
#

you can debug ui layout with

app.insert_resource(UiDebugOptions {
            enabled: true,
            ..Default::default()
        })