Unable to use bundles in BSN
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
}
}
- 主要言語
- Rust
- スター
- 49.7k
- フォーク
- 5k
- 平均マージ
- 3日 19時間
- マージ済み PR(30日)
- 134
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bevyengine/bevy のほかの issue
-
C-Bug S-Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bevyengine/bevy#26536 ·
メンテナーはふだん 2 日以内に返信
-
Placeholder has no default対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンC-Feature S-Needs-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
bevyengine/bevy#26532 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
C-Feature S-Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bevyengine/bevy#26500 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
C-Feature S-Needs-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
bevyengine/bevy#26499 ·
メンテナーはふだん 2 日以内に返信
-
`compute_histogram` in auto exposure writes past the end of the 64-bin histogram対応中かも @dev-matru が 3 日前に担当しました。 オープンA-Rendering C-Bug D-Straightforward S-Ready-For-Implementation X-Uncontroversial
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
bevyengine/bevy#26479 ·
メンテナーはふだん 2 日以内に返信
bevyengine/bevy の issue をすべて見る
似ている issue
-
bug UI
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
wardian-app/Wardian#1746 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jlcodes99/cockpit-tools#3125 ·
メンテナーはふだん 2 日以内に返信
-
bug user-sprint
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Vondor/KassenSturz#967 ·
メンテナーはふだん 1 日以内に返信
-
area/ci
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Incremental sync warns "no stored highest_uid" on every round for folders with no new mailオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rustmailer/bichon#411 ·