Skip to content

Added register_boxed_system to Commands.#24213

Open
bytemuck wants to merge 2 commits intobevyengine:mainfrom
bytemuck:24017-add-register_boxed_system
Open

Added register_boxed_system to Commands.#24213
bytemuck wants to merge 2 commits intobevyengine:mainfrom
bytemuck:24017-add-register_boxed_system

Conversation

@bytemuck
Copy link
Copy Markdown
Contributor

@bytemuck bytemuck commented May 9, 2026

Objective

Fixes #24017

Solution

Added register_boxed_system to Commands.

Testing

  • Added callbacks_boxed example.

@bytemuck bytemuck force-pushed the 24017-add-register_boxed_system branch from 5bd0eb0 to c800a9a Compare May 9, 2026 14:30
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The generated examples/README.md is out of sync with the example metadata in Cargo.toml or the example readme template. Please run cargo run -p build-templated-pages -- update examples to update it, and commit the file change.

@bytemuck bytemuck force-pushed the 24017-add-register_boxed_system branch from c800a9a to ee6788c Compare May 9, 2026 15:03
commands.spawn(exclusive_callback);
}

// In many cases, you might want to use an observer to detect when a callback should run,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: If the comment suggests using an Observer, then an Observer should be used in the example.
Otherwise just change it to describe the System its over.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, maybe we should also take a look to the callback example, as I copied it from there.

Maybe it is worth fixing both examples in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add register_boxed_system to Commands

2 participants