Skip to content

Commit 5705568

Browse files
committed
re generate headings and soft breaks
1 parent bdb5bad commit 5705568

File tree

1 file changed

+18
-17
lines changed
  • content/learn/book/migration-guides/0.9-0.10

1 file changed

+18
-17
lines changed

content/learn/book/migration-guides/0.9-0.10/_index.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ Call `World::entity` before calling into the changed `ReflectComponent` methods,
372372
<div class="migration-guide-area-tag">Hierarchy</div>
373373
</div>
374374

375-
Hierarchy editing methods such as `with_children` and `push_children` have been removed from `WorldChildBuilder`.
376-
You can edit the hierarchy via `EntityMut` instead.
375+
Hierarchy editing methods such as `with_children` and `push_children` have been removed from `WorldChildBuilder`. You can edit the hierarchy via `EntityMut` instead.
377376

378377
### [Rename dynamic feature](https://github.com/bevyengine/bevy/pull/7340)
379378

@@ -557,11 +556,9 @@ The call to `clear_trackers` in `App` has been moved from the schedule to App::u
557556
<div class="migration-guide-area-tag">Rendering</div>
558557
</div>
559558

560-
Remove `.unwrap()` from `add_node_edge` and `add_slot_edge`.
561-
For cases where the error was handled, use `try_add_node_edge` and `try_add_slot_edge` instead.
559+
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.
562560

563-
Remove `.unwrap()` from `input_node`.
564-
For cases where the option was handled, use `get_input_node` instead.
561+
Remove `.unwrap()` from `input_node`. For cases where the option was handled, use `get_input_node` instead.
565562

566563
### [Add AutoMax next to ScalingMode::AutoMin](https://github.com/bevyengine/bevy/pull/6496)
567564

@@ -658,7 +655,7 @@ The `FrameCount` resource was previously only updated when using the `bevy_rend
658655
<div class="migration-guide-area-tag">Tasks</div>
659656
</div>
660657

661-
**App `runner` and SubApp `extract` functions are now required to be Send**
658+
__App `runner` and SubApp `extract` functions are now required to be Send__
662659

663660
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.
664661

@@ -703,23 +700,17 @@ The `background_color` field of `ExtractedUiNode` is now named `color`.
703700
<div class="migration-guide-area-tag">Hierarchy</div>
704701
</div>
705702

706-
`GlobalTransform::translation_mut` has been removed without alternative,
707-
if you were relying on this, update the `Transform` instead. If the given entity
708-
had children or parent, you may need to remove its parent to make its transform
709-
independent (in which case the new `Commands::set_parent_in_place` and
710-
`Commands::remove_parent_in_place` may be of interest)
703+
`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)
711704

712-
Bevy may add in the future a way to toggle transform propagation on
713-
an entity basis.
705+
Bevy may add in the future a way to toggle transform propagation on an entity basis.
714706

715-
### [Change the default `width` and `height` of `Size` to `Val::Auto`](https://github.com/bevyengine/bevy/pull/7475)
707+
### [change the default `width` and `height` of `Size` to `Val::Auto`](https://github.com/bevyengine/bevy/pull/7475)
716708

717709
<div class="migration-guide-area-tags">
718710
<div class="migration-guide-area-tag">UI</div>
719711
</div>
720712

721-
The default values for `Size` `width` and `height` have been changed from `Val::Undefined` to `Val::Auto`.
722-
It’s unlikely to cause any issues with existing code.
713+
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.
723714

724715
### [Remove `QueuedText`](https://github.com/bevyengine/bevy/pull/7414)
725716

@@ -737,6 +728,16 @@ It’s unlikely to cause any issues with existing code.
737728

738729
The `alignment` field of `Text` now only affects the text’s internal alignment.
739730

731+
__Change `TextAlignment` to TextAlignment` which is now an enum. Replace:__
732+
733+
- `TextAlignment::TOP_LEFT`, `TextAlignment::CENTER_LEFT`, `TextAlignment::BOTTOM_LEFT` with `TextAlignment::Left`
734+
- `TextAlignment::TOP_CENTER`, `TextAlignment::CENTER_LEFT`, `TextAlignment::BOTTOM_CENTER` with `TextAlignment::Center`
735+
- `TextAlignment::TOP_RIGHT`, `TextAlignment::CENTER_RIGHT`, `TextAlignment::BOTTOM_RIGHT` with `TextAlignment::Right`
736+
737+
__Changes for `Text2dBundle`__
738+
739+
`Text2dBundle` has a new field ‘text_anchor’ that takes an `Anchor` component that controls its position relative to its transform.
740+
740741
### [Change default FocusPolicy to Pass](https://github.com/bevyengine/bevy/pull/7161)
741742

742743
<div class="migration-guide-area-tags">

0 commit comments

Comments
 (0)