Ben Frankel

Results 109 comments of Ben Frankel

Can be closed as obsolete after https://github.com/bevyengine/bevy/pull/12859.

This is also fixed in [pyri_state](https://github.com/benfrankel/pyri_state) without the need for defining a second state: ```rust add_systems(Update, MyState::with(|x| matches!(x, MyState::X | MyState::Y | ...)).on_update(my_systems)); ``` Or if you want to look...

I hit this issue in Bevy 0.10 during Bevy Game Jam 3. We made a 2D pixel art game with scaled up pixels via camera zoom, and then I tried...

> Can you elaborate on how this didn't work out for you / what artifacts you were experiencing? ~~The text gets pixelated first, and then scaled down via linear sampling,...

For some reason I remember there being more to the story at the time, but going back and looking at the actual font size rendered + the actual pixels on...

You only need to scale the text's transform by the inverse of the camera zoom. No need to touch the font size.

Another source of panics is when systems with `Res` or `ResMut` arguments are scheduled when the resource doesn't exist. In complex applications this might be triggered only in very specific...

Made a PR re-adding the behavior as opt-in via `NextState::set_forced`.

> I don't think there is a need to complicate `NextState` with an opt-in API, I'd much better prefer a `SystemParam` wrapper around `(State, NextState)` pair that performs the check...

Okay I see what you're saying. You could give `param.set(current_state)` the current behavior by setting `next_state.0 = None` instead of `Some(current_state)`, and `param.set_forced` can have the old behavior by setting...