Skip to content

Commit

Permalink
Add migration guide for the default clearcolor change (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett authored Nov 6, 2023
1 parent 24fd93b commit abb37e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/learn/migration-guides/0.11-0.12/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1516,4 +1516,18 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {

`&mut EventReader` does not implement `IntoIterator` anymore. replace `for foo in &mut events` by `for foo in events.iter()`

### [Update default `ClearColor`` to better match Bevy's branding](https://github.com/bevyengine/bevy/pull/10339)

<div class="migration-guide-area-tags">
<div class="migration-guide-area-tag">Rendering</div>
</div>

The default app background color has changed. To use the old default, add a `ClearColor` resource.

```rust
App::new()
.insert_resource(ClearColor(Color::rgb(0.4, 0.4, 0.4)))
.add_plugins(DefaultPlugins)
```

</div>

0 comments on commit abb37e3

Please sign in to comment.