bevy
bevy copied to clipboard
Add a Unsafe method for splitting access in a system
What problem does this solve or what need does it fill?
We have ParamSet for safely switching access between 2 system params that conflict with each other, but we don't have a way of doing the same thing unsafely, when the user knows that the access won't conflict. For example this happens with a query with EntityMut and any resources. This could be an easy escape hatch of that situation, but also probably has other uses.
What solution would you like?
Either add unsafe accessors to ParamSet or a new SystemParam with unsafe accessors. One reason we might not want to add this is that ParamSet has a combinatorial level of code gen.