bevy/examples/state
krunchington 2c22bc12a0
Update computed_states example to use children macro (#18290)
# Objective

Contributes to #18238 
Updates the `computed_states`, example to use the `children!` macro.
Note that this example requires `--features bevy_dev_tools` to run

## Solution

Updates examples to use the Improved Spawning API merged in
https://github.com/bevyengine/bevy/pull/17521

## Testing

- Did you test these changes? If so, how?
- Opened the examples before and after and verified the same behavior
was observed. I did this on Ubuntu 24.04.2 LTS using `--features
wayland`.
- Are there any parts that need more testing?
- Other OS's and features can't hurt, but this is such a small change it
shouldn't be a problem.
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
  - Run the examples yourself with and without these changes.
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?
  - see above

---

## Showcase

n/a

## Migration Guide

n/a
2025-03-13 16:35:32 +00:00
..
computed_states.rs Update computed_states example to use children macro (#18290) 2025-03-13 16:35:32 +00:00
custom_transitions.rs Update custom_transitions and sub_states examples to use children macro (#18292) 2025-03-13 03:11:13 +00:00
states.rs Update state/states example to use children! macro (#18250) 2025-03-11 05:47:28 +00:00
sub_states.rs Update custom_transitions and sub_states examples to use children macro (#18292) 2025-03-13 03:11:13 +00:00