Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 0 additions & 126 deletions changes.md

This file was deleted.

12 changes: 6 additions & 6 deletions content/learn/book/migration-guides/0.4-0.5/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ long_title = "Migration Guide: 0.4 to 0.5"

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

## `commands: &mut Commands` SystemParam is now `mut commands: Commands`
### "commands: &mut Commands" SystemParam is now "mut commands: Commands"

```rust
// 0.4
Expand All @@ -30,7 +30,7 @@ reference to enable safe entity allocations.

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

## {{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
### Commands::insert() API is now used for a single component

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

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.

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

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

## Simplified Events
### Simplified Events

```rust
// 0.4
Expand Down Expand Up @@ -112,11 +112,11 @@ fn event_writer_system(
}
```

## `AppBuilder::add_resource` is now called `AppBuilder::insert_resource`
### AppBuilder::add_resource is now called AppBuilder::insert_resource

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

## TextBundle
### TextBundle

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.

Expand Down
Binary file added content/news/2021-04-06-bevy-0.5/2d_text.mp4
Binary file not shown.
Loading