bevy_prototype_lyon
bevy_prototype_lyon copied to clipboard
v0.14 update
This version supports Bevy 0.16.
Note: The examples dynamic_shape and dynamic_stroke_size do not work properly, since the shapes aren't drawn. Unfortunately I don't have the time to investigate and fix the issue.
I will continue to investigating later, but so far it seems that this is due to a one frame delay when a mesh is rebuilt specifically in PostUpdate. This is reproducible in "raw bevy" but not when done in the Update schedule.
If the example if modified in this way, the example "works" (with a bit of flicker).
- .add_systems(Update, redraw_shape)
+ .add_systems(
+ Update,
+ redraw_shape.run_if(input_just_pressed(KeyCode::Space)),
+ )
Opened https://github.com/Nilirad/bevy_prototype_lyon/pull/278 to fix dynamic_ examples.
Thank you :)