Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - 0.8 Migration guide #389

Closed
wants to merge 51 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
a1e2164
create guide
IceSentry Jun 29, 2022
02a8de7
first draft of all the PRs tagged as breaking change
IceSentry Jun 29, 2022
4d51cfe
apply some suggestions
IceSentry Jun 29, 2022
c506e6c
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
ccfff67
update CameraUi
IceSentry Jul 15, 2022
586daf4
add global task pool section
IceSentry Jul 15, 2022
81d4b6e
update migration guide
IceSentry Jul 15, 2022
fe3970c
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
e62e2bf
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
fd517ea
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
0c22c52
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
f0039f9
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
a14a65c
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
d1084fe
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
43be735
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
92c47b7
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 15, 2022
8fce721
add code blocks and move camera rendering section
IceSentry Jul 22, 2022
5f3016c
update guide
IceSentry Jul 22, 2022
463223c
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
bba25a2
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
a7767e1
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
c3a78d1
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
83ad9aa
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
b55d010
address more feedback
IceSentry Jul 22, 2022
6c6e7d7
spatial bundle
IceSentry Jul 22, 2022
a4b7c28
add more breaking PRs
IceSentry Jul 22, 2022
9bd7ceb
fix TODOs
IceSentry Jul 22, 2022
32f7a67
reorder by importance
IceSentry Jul 22, 2022
9f3770d
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
46683e4
move SpatialBundle closer to visibility stuff
IceSentry Jul 22, 2022
20aaf38
rephrase
IceSentry Jul 22, 2022
9e564eb
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
f5c5162
merge with other section
IceSentry Jul 22, 2022
18ccaa1
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
01631ff
add small sentence
IceSentry Jul 22, 2022
5152536
Merge remote-tracking branch 'origin/0.8-migration-guide' into 0.8-mi…
IceSentry Jul 22, 2022
5a739fe
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
8bbdd61
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
492c8a2
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 22, 2022
9d70e9a
Apply suggestions from code review
IceSentry Jul 22, 2022
5456165
update 16-bit
IceSentry Jul 22, 2022
bfcc0e2
UiCameraConfig
IceSentry Jul 23, 2022
2b40789
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 23, 2022
eb26d69
Apply suggestions from code review
IceSentry Jul 23, 2022
4072013
various fixes
IceSentry Jul 23, 2022
ec757aa
update reflect_partial_eq
IceSentry Jul 23, 2022
754f295
Add no default features from PR #5447
aevyrie Jul 26, 2022
7e681e9
Merge pull request #4 from aevyrie/patch-1
IceSentry Jul 26, 2022
de8f981
show thread_pool origin
IceSentry Jul 26, 2022
c739af9
Update content/learn/book/migration-guides/0.7-0.8/_index.md
IceSentry Jul 26, 2022
73a5529
ShaderType
cart Jul 30, 2022
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
18 changes: 18 additions & 0 deletions content/learn/book/migration-guides/0.7-0.8/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Adds ability to specify scaling factor for `WindowSize`, size of the fixed axis
### [Allow closing windows at runtime](https://github.com/bevyengine/bevy/pull/3575)

`bevy::input::system::exit_on_esc_system` has been removed. Use `bevy::window::close_on_esc` instead.

`CloseWindow` has been removed. Use `Window::close` instead.
The Close variant has been added to `WindowCommand`. Handle this by closing the relevant window.

Expand Down Expand Up @@ -300,3 +301,20 @@ Exhaustive matches on `RenderGraphRunnerError` will need to add a branch to hand
<!-- Dear God, I hope not. -->

If you experienced any problems caused by this change, please [create an issue](https://github.com/bevyengine/bevy/issues) explaining _in detail_ what you were doing with those apis.

### [Add global init and get accessors for all newtyped TaskPools](https://github.com/bevyengine/bevy/pull/2250)

Thread pools don't need to be stored in a resource anymore since they are now stored globally. You can now use `get()` to access it.

```rust
// 0.7
fn spawn_tasks(mut commands: Commands, thread_pool: Res<AsyncComputeTaskPool>) {
// Do something with thread_pool
}

// 0.8
fn spawn_tasks(mut commands: Commands) {
let thread_pool = AsyncComputeTaskPool::get();
// Do something with thread_pool
}
IceSentry marked this conversation as resolved.
Show resolved Hide resolved
```