bevy icon indicating copy to clipboard operation
bevy copied to clipboard

`BuilderSystem` for easier system builder construction

Open ecoskey opened this issue 2 months ago • 0 comments

NOTE: blocked on #21917 or #21916

Objective

  • Enable constructing systems from param builders without world access

Solution

  • Add BuilderSystem, a wrapper which defers state construction until the first run
  • in addition to (...params).build_state(&mut world).build_system(|| {}), now you can also call (...params).build_system(|| {}) directly

Testing

  • compiles

(will add more tests while fixing review nits)

ecoskey avatar Nov 24 '25 00:11 ecoskey