Skip to content

Missing migration: mention features to enable for reflection registration to work #21092

Closed

Description

@janhohenheim

What problem does this solve or what need does it fill?

Porting Tnua, I got this:

thread 'main' (253822) panicked at /home/hhh/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_scene-0.17.0-rc.1/src/scene_spawner.rs:621:35:
scene contains the unregistered type `bevy_transform::components::transform::Transform`. consider reflecting it with `#[derive(Reflect)]` and registering the type using `app.register_type::<T>()`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_scene::scene_spawner::scene_spawner_system`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
error: command `cargo run --bin platformer_3d --features avian3d,bevy/debug --profile dev` exited with status code exit status: 101

This happened because bevy_tnua depends on Bevy without default features enabled. Turns out you need to enable reflect_auto_register for that to work. Also, the new reflect_auto_register_static feature is not mentioned either.

Activity

  1. added this to the 0.17 milestone on Sep 16, 2025
  2. added
    C-DocsAn addition or correction to our documentation
    A-ReflectionRuntime information about types
    M-Migration-GuideA breaking change to Bevy's public API that needs to be noted in a migration guide
    S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!
    D-StraightforwardSimple bug fixes and API improvements, docs, test and examples
    and removed
    C-FeatureA new feature, making something new possible
    S-Needs-TriageThis issue needs to be labelled
    on Sep 16, 2025
  3. added a commit that references this issue on Sep 21, 2025
    9de4cd4
  4. added a commit that references this issue on Sep 22, 2025
    0508d6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

A-ReflectionRuntime information about typesC-DocsAn addition or correction to our documentationD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesM-Migration-GuideA breaking change to Bevy's public API that needs to be noted in a migration guideS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions