diff --git a/content/learn/book/migration-guides/0.9-0.10/_index.md b/content/learn/book/migration-guides/0.9-0.10/_index.md index b6ec79a21c..25a238f589 100644 --- a/content/learn/book/migration-guides/0.9-0.10/_index.md +++ b/content/learn/book/migration-guides/0.9-0.10/_index.md @@ -372,8 +372,7 @@ Call `World::entity` before calling into the changed `ReflectComponent` methods,
Hierarchy
-Hierarchy editing methods such as `with_children` and `push_children` have been removed from `WorldChildBuilder`. -You can edit the hierarchy via `EntityMut` instead. +Hierarchy editing methods such as `with_children` and `push_children` have been removed from `WorldChildBuilder`. You can edit the hierarchy via `EntityMut` instead. ### [Rename dynamic feature](https://github.com/bevyengine/bevy/pull/7340) @@ -557,11 +556,9 @@ The call to `clear_trackers` in `App` has been moved from the schedule to App::u
Rendering
-Remove `.unwrap()` from `add_node_edge` and `add_slot_edge`. -For cases where the error was handled, use `try_add_node_edge` and `try_add_slot_edge` instead. +Remove `.unwrap()` from `add_node_edge` and `add_slot_edge`. For cases where the error was handled, use `try_add_node_edge` and `try_add_slot_edge` instead. -Remove `.unwrap()` from `input_node`. -For cases where the option was handled, use `get_input_node` instead. +Remove `.unwrap()` from `input_node`. For cases where the option was handled, use `get_input_node` instead. ### [Add AutoMax next to ScalingMode::AutoMin](https://github.com/bevyengine/bevy/pull/6496) @@ -658,7 +655,7 @@ The `FrameCount` resource was previously only updated when using the `bevy_rend
Tasks
-**App `runner` and SubApp `extract` functions are now required to be Send** +__App `runner` and SubApp `extract` functions are now required to be Send__ This was changed to enable pipelined rendering. If this breaks your use case please report it as these new bounds might be able to be relaxed. @@ -703,23 +700,17 @@ The `background_color` field of `ExtractedUiNode` is now named `color`.
Hierarchy
-`GlobalTransform::translation_mut` has been removed without alternative, -if you were relying on this, update the `Transform` instead. If the given entity -had children or parent, you may need to remove its parent to make its transform -independent (in which case the new `Commands::set_parent_in_place` and -`Commands::remove_parent_in_place` may be of interest) +`GlobalTransform::translation_mut` has been removed without alternative, if you were relying on this, update the `Transform` instead. If the given entity had children or parent, you may need to remove its parent to make its transform independent (in which case the new `Commands::set_parent_in_place` and `Commands::remove_parent_in_place` may be of interest) -Bevy may add in the future a way to toggle transform propagation on -an entity basis. +Bevy may add in the future a way to toggle transform propagation on an entity basis. -### [Change the default `width` and `height` of `Size` to `Val::Auto`](https://github.com/bevyengine/bevy/pull/7475) +### [change the default `width` and `height` of `Size` to `Val::Auto`](https://github.com/bevyengine/bevy/pull/7475)
UI
-The default values for `Size` `width` and `height` have been changed from `Val::Undefined` to `Val::Auto`. -It’s unlikely to cause any issues with existing code. +The default values for `Size` `width` and `height` have been changed from `Val::Undefined` to `Val::Auto`. It’s unlikely to cause any issues with existing code. ### [Remove `QueuedText`](https://github.com/bevyengine/bevy/pull/7414) @@ -737,6 +728,16 @@ It’s unlikely to cause any issues with existing code. The `alignment` field of `Text` now only affects the text’s internal alignment. +__Change `TextAlignment` to TextAlignment` which is now an enum. Replace:__ + +- `TextAlignment::TOP_LEFT`, `TextAlignment::CENTER_LEFT`, `TextAlignment::BOTTOM_LEFT` with `TextAlignment::Left` +- `TextAlignment::TOP_CENTER`, `TextAlignment::CENTER_LEFT`, `TextAlignment::BOTTOM_CENTER` with `TextAlignment::Center` +- `TextAlignment::TOP_RIGHT`, `TextAlignment::CENTER_RIGHT`, `TextAlignment::BOTTOM_RIGHT` with `TextAlignment::Right` + +__Changes for `Text2dBundle`__ + +`Text2dBundle` has a new field ‘text_anchor’ that takes an `Anchor` component that controls its position relative to its transform. + ### [Change default FocusPolicy to Pass](https://github.com/bevyengine/bevy/pull/7161)