bevy_prototype_lyon icon indicating copy to clipboard operation
bevy_prototype_lyon copied to clipboard

v0.14 update

Open Nilirad opened this issue 7 months ago • 2 comments

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.

Nilirad avatar Apr 06 '25 16:04 Nilirad

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)),
+        )

rparrett avatar Apr 06 '25 18:04 rparrett

Opened https://github.com/Nilirad/bevy_prototype_lyon/pull/278 to fix dynamic_ examples.

rparrett avatar Apr 06 '25 18:04 rparrett

Thank you :)

rparrett avatar Oct 17 '25 22:10 rparrett