Skip to content

Commit 222866f

Browse files
committed
WIP release notes
1 parent b902d5f commit 222866f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Option and dynamic bundles
3+
authors: ["@SkiFire13"]
4+
pull_requests: [19491]
5+
---
6+
7+
Until now bundles have always represented a static set of components, meaning you could not create a `Bundle` that sometimes inserts a component and sometimes doesn't, or a totally dynamic bundle like you would expect from a `Box<dyn Bundle>`.
8+
9+
In Bevy 0.17 the `Bundle` trait has been reworked to support these usecases, in particular:
10+
11+
- `Option<B: Bundle` now implements `Bundle`
12+
- `Bundle` is now a dyn-compatible trait and `Box<dyn Bundle>` implements `Bundle`
13+
- `Vec<Box<dyn Bundle>>` also implements `Bundle`
14+
15+
TODO: showcase

0 commit comments

Comments
 (0)