Unable to use bundles in BSN
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 20/100
Línea de trabajo
The failure is the SceneEffect trait bound that bsn! requires when a Bundle appears inside a scene, and the linked SceneComponent docs are the workaround the reporter found. Start by reading how bevy_scene decides which types may appear in bsn!, and check whether a bundle-to-scene conversion already exists. Done means a maintainer has chosen between documenting the workaround, improving the error message, or supporting bundles directly, and the chosen path is reflected in code or docs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bevy version and features
0.20.1
What you did
#[derive(Component, Clone, Default)]
struct A;
#[derive(Component, Clone, Default)]
struct B;
#[derive(Bundle, Clone, Default)]
struct Bundle {
a: A,
b: B,
}
fn scene() -> impl Scene {
bsn! {
Bundle {
a: A,
b: B
}
}
}
What went wrong
the trait bound `Bundle: SceneEffect` is not satisfied
Additional information
It appears that SceneComponent is what you are supposed to use for "nameable" sub-pieces of a scene. However, this requires writing an extra function that will just copy the contents of the bundle to the scene. If this is the correct behavior, it should be documented (and ideally give a better error message) for users like me who try to use bundles in scenes and get confused. Otherwise, I might suggest that there is an intuitively obvious behavior here, namely, the above should be equivalent to
fn scene() -> impl Scene {
bsn! {
A
B
}
}
- Lenguaje dominante
- Rust
- Estrellas
- 49.7k
- Forks
- 5k
- Merge medio
- 3 d 19 h
- PR fusionados (30 d)
- 134
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bevyengine/bevy
-
C-Bug S-Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bevyengine/bevy#26536 ·
Los mantenedores suelen responder en 2 días
-
Placeholder has no defaultPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoC-Feature S-Needs-Triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
bevyengine/bevy#26532 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
C-Feature S-Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bevyengine/bevy#26500 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
`Selected` should derive ReflectAbiertoC-Feature S-Needs-Triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
bevyengine/bevy#26499 ·
Los mantenedores suelen responder en 2 días
-
`compute_histogram` in auto exposure writes past the end of the 64-bin histogramPosiblemente ocupada @dev-matru la tomó hace 3 días. AbiertoA-Rendering C-Bug D-Straightforward S-Ready-For-Implementation X-Uncontroversial
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
bevyengine/bevy#26479 ·
Los mantenedores suelen responder en 2 días
Todos los issues de bevyengine/bevy
Issues similares
-
bug UI
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wardian-app/Wardian#1746 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
jlcodes99/cockpit-tools#3125 ·
Los mantenedores suelen responder en 2 días
-
bug user-sprint
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Vondor/KassenSturz#967 ·
Los mantenedores suelen responder en 1 día
-
area/ci
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
[BUG] Incremental sync warns "no stored highest_uid" on every round for folders with no new mailAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
rustmailer/bichon#411 ·