You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##`commands: &mut Commands` SystemParam is now `mut commands: Commands`
13
+
### "commands: &mut Commands" SystemParam is now "mut commands: Commands"
14
14
15
15
```rust
16
16
// 0.4
@@ -30,7 +30,7 @@ reference to enable safe entity allocations.
30
30
31
31
Note: The internal {{rust_type(type="struct" crate="bevy_ecs" version="0.5.0" name="World" no_mod=true)}} reference requires two lifetime parameters to pass Commands into a non-system function: ```commands: &'a mut Commands<'b>```
32
32
33
-
##{{rust_type(type="struct" crate="bevy_ecs" version="0.5.0" name="Commands" no_mod=true)}} `insert()` API is now used for a single component
33
+
### Commands::insert() API is now used for a single component
34
34
35
35
```rust
36
36
// 0.4
@@ -54,7 +54,7 @@ This means that `commands.insert()` will no longer accept a bundle as an argumen
54
54
55
55
This change helps to clarify the difference between components and bundles, and brings {{rust_type(type="struct" crate="bevy_ecs" version="0.5.0" name="Commands" no_mod=true)}} into alignment with other Bevy APIs. It also eliminates the confusion associated with calling `commands.insert()` on a tuple for the single-component case.
@@ -73,7 +73,7 @@ This change allows timers to have consistent, high precision. For convenience, t
73
73
`elapsed_secs` method that returns `f32`. Otherwise, when you need an `f32`, use the
74
74
`as_secs_f32()` method on `Duration` to make the conversion.
75
75
76
-
## Simplified Events
76
+
###Simplified Events
77
77
78
78
```rust
79
79
// 0.4
@@ -112,11 +112,11 @@ fn event_writer_system(
112
112
}
113
113
```
114
114
115
-
##`AppBuilder::add_resource` is now called `AppBuilder::insert_resource`
115
+
### AppBuilder::add_resource is now called AppBuilder::insert_resource
116
116
117
117
This is a small change to have function names on `AppBuilder` consistent with the `Commands` API.
118
118
119
-
## TextBundle
119
+
###TextBundle
120
120
121
121
This bundle has been reworked to allow multiple differently-styled sections of text within a single bundle. `Text::with_section` was added to simplify the common case where you're only interested in one text section.
0 commit comments