Skip to content

Commit 16536c8

Browse files
authored
news: release 0.5.0 (#113)
news: release 0.5.0
1 parent 0c7d580 commit 16536c8

File tree

18 files changed

+3416
-132
lines changed

18 files changed

+3416
-132
lines changed

changes.md

Lines changed: 0 additions & 126 deletions
This file was deleted.

content/learn/book/migration-guides/0.4-0.5/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ long_title = "Migration Guide: 0.4 to 0.5"
1010

1111
<!-- TODO: link to release blog post here -->
1212

13-
## `commands: &mut Commands` SystemParam is now `mut commands: Commands`
13+
### "commands: &mut Commands" SystemParam is now "mut commands: Commands"
1414

1515
```rust
1616
// 0.4
@@ -30,7 +30,7 @@ reference to enable safe entity allocations.
3030

3131
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>```
3232

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
3434

3535
```rust
3636
// 0.4
@@ -54,7 +54,7 @@ This means that `commands.insert()` will no longer accept a bundle as an argumen
5454

5555
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.
5656

57-
## {{rust_type(type="struct" crate="bevy_core" version="0.5.0" name="Timer" no_mod=true)}} uses `Duration`
57+
### Timer now uses Duration
5858

5959
```rust
6060
// 0.4
@@ -73,7 +73,7 @@ This change allows timers to have consistent, high precision. For convenience, t
7373
`elapsed_secs` method that returns `f32`. Otherwise, when you need an `f32`, use the
7474
`as_secs_f32()` method on `Duration` to make the conversion.
7575

76-
## Simplified Events
76+
### Simplified Events
7777

7878
```rust
7979
// 0.4
@@ -112,11 +112,11 @@ fn event_writer_system(
112112
}
113113
```
114114

115-
## `AppBuilder::add_resource` is now called `AppBuilder::insert_resource`
115+
### AppBuilder::add_resource is now called AppBuilder::insert_resource
116116

117117
This is a small change to have function names on `AppBuilder` consistent with the `Commands` API.
118118

119-
## TextBundle
119+
### TextBundle
120120

121121
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.
122122

99.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)