Borders of `MaterialNodeBundle` are vanished
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
v0.14
## What you did
```rust
#[derive(Asset, AsBindGroup, TypePath, Debug, Clone)]
pub struct HealthBarMaterial { ... }
impl UiMaterial for HealthBarMaterial {}
```
```rust
pub fn health_bar() -> Style {
Style {
position_type: PositionType::Absolute,
align_self: AlignSelf::Start,
justify_self: JustifySelf::Start,
align_items: AlignItems::Center,
justify_content: JustifyContent::Center,
border: UiRect::all(Val::Percent(0.30)),
width: Val::Percent(15.00),
height: Val::Percent(5.00),
top: Val::Percent(4.00),
left: Val::Percent(1.50),
..default()
}
}
```
```rust
parent
.spawn((
Name::new("Health Bar"),
HudHealthBar,
MaterialNodeBundle {
style: styles::health_bar(),
material: health_bar_materials.add(HealthBarMaterial::default()),
..default()
},
BorderColor(Color::srgb(0.00, 0.00, 0.00)),
))
```
## What went wrong
In v0.13, it looked like this:
But in v0.14, the same code looks like this:
Contributor guide
Assessment
This issue has not been assessed yet.