-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Description
- Bevy version: 0.4
- Operating system: Windows 10
I am building an UI and have an absolutely positioned image using ImageBundle. It works until I add an additional component to it (no matter empty or not) - image then disappears.
.spawn(ImageBundle {
style: Style {
size: Size::new(Val::Px(25.0), Val::Px(25.0)),
position_type: PositionType::Absolute,
position: Rect {
left: Val::Px(10.0),
bottom: Val::Px(10.0),
..Default::default()
},
..Default::default()
},
material: materials.add(asset_server.load("crosshairs/crosshair026.png").into()),
..Default::default()
})
.with(control::MouseCursor)The same code, but with TextBundle works as expected.
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior