Skip to content

Commit

Permalink
re generate headings and soft breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Feb 8, 2023
1 parent bdb5bad commit 5705568
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions content/learn/book/migration-guides/0.9-0.10/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ Call `World::entity` before calling into the changed `ReflectComponent` methods,
<div class="migration-guide-area-tag">Hierarchy</div>
</div>

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)

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

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)

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

**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.

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

`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)

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

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)

Expand All @@ -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)

<div class="migration-guide-area-tags">
Expand Down

0 comments on commit 5705568

Please sign in to comment.