#name in a bsn_list! scene-component prop resolves to the same entity as the outer scene's #name

Aperta
#26,446 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
game-dev

Direzione di ricerca

Start by reproducing the nested bsn_list! case from the issue’s attached example, then trace how scene component props and #name entities are handled during spawning. Check nearby scene spawning tests and add coverage for both the outer root and nested list names. Done when both named entities spawn with the expected parent relationship.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A-Scenes C-Bug D-Macros D-Modest S-Ready-For-Implementation

Bevy version and features

0.20-dev

What you did

Spawned a scene component whose prop is a Box<dyn SceneList>, which its scene function places as children, with a #name on both the outer root and the nested list:

world.spawn_scene(bsn! {
    @Wrapper {
        @contents: bsn_list! { #Inner },
    }
    #Outer
});

What went wrong

Only one named entity spawns, named Inner, with no parent; Outer is gone. The two #names resolved to the same entity.

Additional information

Minimal repro example attached:

bsn_nested_names.rs.zip

(Note: example was LLM-generated.)

@cart

Lingua principale
Rust
Stelle
49.7k
Fork
5k
Merge medio
3g 19h
PR unite (30g)
134

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bevyengine/bevy

Tutte le issue di bevyengine/bevy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.