Skip to content

Commit

Permalink
news: release 0.5.0 (#113)
Browse files Browse the repository at this point in the history
news: release 0.5.0
  • Loading branch information
cart authored Apr 6, 2021
1 parent 0c7d580 commit 16536c8
Show file tree
Hide file tree
Showing 18 changed files with 3,416 additions and 132 deletions.
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

0 comments on commit 16536c8

Please sign in to comment.