-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
188 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...ase-content/0.14/migration-guides/13238_More_idiomatic_texture_atlas_builder.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```diff | ||
- let mut texture_atlas_builder = TextureAtlasBuilder::default().padding(UVec2::default()).format(..); | ||
+ let mut texture_atlas_builder = TextureAtlasBuilder::default(); | ||
+ texture_atlas_builder.padding(UVec2::default()).format(..); | ||
|
||
- let (texture_atlas_layout, texture) = texture_atlas_builder.finish().unwrap(); | ||
+ let (texture_atlas_layout, texture) = texture_atlas_builder.build().unwrap(); | ||
``` |
2 changes: 2 additions & 0 deletions
2
release-content/0.14/migration-guides/13261_More_gizmos_builders.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Some `gizmos.primitive_nd` methods now return some or different builders. You may need to adjust types and match statements | ||
- Replace any calls to `circle_segments()` with `.segments()` |
17 changes: 17 additions & 0 deletions
17
release-content/0.14/migration-guides/13366_fix_upgrade_to_winit_v030.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
The custom UserEvent is now renamed as WakeUp, used to wake up the loop if anything happens outside the app (a new [custom_user_event](https://github.com/bevyengine/bevy/pull/13366/files#diff-2de8c0a8d3028d0059a3d80ae31b2bbc1cde2595ce2d317ea378fe3e0cf6ef2d) shows this behavior. | ||
|
||
The internal `UpdateState` has been removed and replaced internally by the AppLifecycle. When changed, the AppLifecycle is sent as an event. | ||
|
||
The `UpdateMode` now accepts only two values: `Continuous` and `Reactive`, but the latter exposes 3 new properties to enable reactive to device, user or window events. The previous `UpdateMode::Reactive` is now equivalent to `UpdateMode::reactive()`, while `UpdateMode::ReactiveLowPower` to `UpdateMode::reactive_low_power()`. | ||
|
||
The `ApplicationLifecycle` has been renamed as `AppLifecycle`, and now contains the possible values of the application state inside the event loop: | ||
|
||
- `Idle`: the loop has not started yet | ||
- `Running` (previously called `Started`): the loop is running | ||
- `WillSuspend`: the loop is going to be suspended | ||
- `Suspended`: the loop is suspended | ||
- `WillResume`: the loop is going to be resumed | ||
|
||
Note: the `Resumed` state has been removed since the resumed app is just running. | ||
|
||
Finally, now that `winit` enables this, it extends the `WinitPlugin` to support custom events. |
1 change: 1 addition & 0 deletions
1
...tion-guides/13442_constrain_WorldQueryinit_state_argument_to_ComponentInitia.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Instead of passing `&mut World` to `WorldQuery::init_state` directly, pass in a mutable reference to the struct returned from `World::component_initializer`. |
14 changes: 14 additions & 0 deletions
14
release-content/0.14/migration-guides/13489_Normalise_matrix_naming.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- `Frustum`’s `from_view_projection`, `from_view_projection_custom_far` and `from_view_projection_no_far` were renamed to `from_clip_from_world`, `from_clip_from_world_custom_far` and `from_clip_from_world_no_far`. | ||
- `ComputedCameraValues::projection_matrix` was renamed to `clip_from_view`. | ||
- `CameraProjection::get_projection_matrix` was renamed to `get_clip_from_view` (this affects implementations on `Projection`, `PerspectiveProjection` and `OrthographicProjection`). | ||
- `ViewRangefinder3d::from_view_matrix` was renamed to `from_world_from_view`. | ||
- `PreviousViewData`’s members were renamed to `view_from_world` and `clip_from_world`. | ||
- `ExtractedView`’s `projection`, `transform` and `view_projection` were renamed to `clip_from_view`, `world_from_view` and `clip_from_world`. | ||
- `ViewUniform`’s `view_proj`, `unjittered_view_proj`, `inverse_view_proj`, `view`, `inverse_view`, `projection` and `inverse_projection` were renamed to `clip_from_world`, `unjittered_clip_from_world`, `world_from_clip`, `world_from_view`, `view_from_world`, `clip_from_view` and `view_from_clip`. | ||
- `GpuDirectionalCascade::view_projection` was renamed to `clip_from_world`. | ||
- `MeshTransforms`’ `transform` and `previous_transform` were renamed to `world_from_local` and `previous_world_from_local`. | ||
- `MeshUniform`’s `transform`, `previous_transform`, `inverse_transpose_model_a` and `inverse_transpose_model_b` were renamed to `world_from_local`, `previous_world_from_local`, `local_from_world_transpose_a` and `local_from_world_transpose_b` (the `Mesh` type in WGSL mirrors this, however `transform` and `previous_transform` were named `model` and `previous_model`). | ||
- `Mesh2dTransforms::transform` was renamed to `world_from_local`. | ||
- `Mesh2dUniform`’s `transform`, `inverse_transpose_model_a` and `inverse_transpose_model_b` were renamed to `world_from_local`, `local_from_world_transpose_a` and `local_from_world_transpose_b` (the `Mesh2d` type in WGSL mirrors this). | ||
- In WGSL, in `bevy_pbr::mesh_functions`, `get_model_matrix` and `get_previous_model_matrix` were renamed to `get_world_from_local` and `get_previous_world_from_local`. | ||
- In WGSL, `bevy_sprite::mesh2d_functions::get_model_matrix` was renamed to `get_world_from_local`. |
16 changes: 16 additions & 0 deletions
16
...gration-guides/13513_Refactor_ci_testing_and_separate_it_from_DevToolsPlugin.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Hi maintainers! I believe `DevToolsPlugin` was added within the same release as this PR, so I don’t think a migration guide is needed. | ||
|
||
`DevToolsPlugin` is no longer included in `MinimalPlugins`, so you will need to remove it manually. | ||
|
||
```rust | ||
// Before | ||
App::new() | ||
.add_plugins(MinimalPlugins) | ||
.run(); | ||
|
||
// After | ||
App::new() | ||
.add_plugins(MinimalPlugins) | ||
.add_plugins(DevToolsPlugin) | ||
.run(); | ||
``` |
1 change: 1 addition & 0 deletions
1
release-content/0.14/migration-guides/13534_Make_gizmos_take_primitives_by_ref.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Any usages of `gizmos.primitive_2d()` and/or `gizmos.primitive_3d()` need to be updated to pass the primitive in by reference. |
1 change: 1 addition & 0 deletions
1
...tion-guides/13549_Generalize_component_reflection_to_operate_on_FilteredEnti.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `ReflectComponent::contains`, `ReflectComponent::reflect`, and `ReflectComponent::reflect_mut` now take `FilteredEntityRef` (in the case of `contains()` and `reflect()`) and `FilteredEntityMut` (in the case of `reflect_mut()`) parameters. `FilteredEntityRef` and `FilteredEntityMut` have very similar APIs to `EntityRef` and `EntityMut` respectively, but optionally restrict the components that can be accessed. |
3 changes: 3 additions & 0 deletions
3
...ase-content/0.14/migration-guides/13580_Add_subdivisions_to_PlaneMeshBuilder.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
If you were using `Plane` `subdivisions`, you now need to use `Plane3d::default().mesh().subdivisions(10)` | ||
|
||
fixes https://github.com/bevyengine/bevy/issues/13258 |
1 change: 1 addition & 0 deletions
1
...ent/0.14/migration-guides/13594_Unify_transition_names_to_exited_and_entered.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `StateTransitionEvent<S>` and `OnTransition<S>` schedule had their fields renamed to `exited` and `entered` to match schedules. |
1 change: 1 addition & 0 deletions
1
...e-content/0.14/migration-guides/13603_Updates_default_Text_font_size_to_24px.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- The default font size has been increased to 24px from 12px. Make sure you set the font to the appropriate values in places you were using `Default` text style. |
1 change: 1 addition & 0 deletions
1
...se-content/0.14/migration-guides/13605_Additional_options_to_mesh_primitives.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- TODO --> |
1 change: 1 addition & 0 deletions
1
...-content/0.14/migration-guides/13626_Combine_transition_systems_of_Substates.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `apply_state_transition` is no longer publicly available, run the `StateTransition` schedule instead. |
1 change: 1 addition & 0 deletions
1
...tion-guides/13637_Move_state_installation_methods_from_bevy_app_to_bevy_stat.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`App::init_state` is now provided by the `bevy_state::app::AppExtStates;` trait: import it if you need this method and are not blob-importing the `bevy` prelude. |
1 change: 1 addition & 0 deletions
1
...tion-guides/13640_Move_clusteringrelated_types_and_functions_into_their_own_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Clustering-related types and functions (e.g. `assign_lights_to_clusters`) have moved under `bevy_pbr::cluster`, in preparation for the ability to cluster objects other than lights. |
1 change: 1 addition & 0 deletions
1
...tion-guides/13654_Rename_point_light_to_clusterable_object_in_cluster_contex.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- In the PBR shaders, `point_lights` is now known as `clusterable_objects`, `PointLight` is now known as `ClusterableObject`, and `cluster_light_index_lists` is now known as `clusterable_object_index_lists`. |
2 changes: 2 additions & 0 deletions
2
.../0.14/migration-guides/13660_rename_touchpad_to_gesture_and_add_new_gestures.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `TouchpadMagnify` has been renamed to `PinchGesture` | ||
- `TouchpadRotate` has been renamed to `RotationGesture ` |
1 change: 1 addition & 0 deletions
1
...4/migration-guides/13678_flush_key_input_cache_when_Bevy_loses_focus_Adopted.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`WinitEvent` has a new enum variant: `WinitEvent::KeyboardFocusLost`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters