Nilirad / bevy_prototype_lyon

Draw 2D shapes in Bevy
Apache License 2.0
702 stars 87 forks source link

Make stage placement configurable #157

Open asafigan opened 2 years ago

asafigan commented 2 years ago

Right now the custom stage used by this plugin is set for after CoreStage::Update. For my game, I have to update some lines in CoreStage::PostUpdate after transform propagation. This causes the lines meshes to be one frame behind. I would like to make the custom stage placement configurable. I wouldn't want to change the existing interface for the plugin but I would like to add an alternative plugin which allows you to configure which stage to place the Shape stage after.

Nilirad commented 2 years ago

Unfortunately, current limitations of the plugin system of Bevy renders it impossible. See:

As stageless will land soon-ish, this issue will probably be resolved. You can track the progress in these places:

asafigan commented 2 years ago

This seems to no longer be and issue on master. There is no more custom stage and instead meshes are updated after global transforms are updated in CoreStage::PostUpdate. This allowed me to place a system before meshes where updated but after global transforms are updated.