From 460cf4833542cce48af0631f8966897a651f8e27 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Fri, 3 Nov 2023 17:16:26 -0700 Subject: [PATCH] Fix typos in migration guide (#799) --- content/learn/migration-guides/0.11-0.12/_index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/learn/migration-guides/0.11-0.12/_index.md b/content/learn/migration-guides/0.11-0.12/_index.md index 32e74e4a25..97afbf0783 100644 --- a/content/learn/migration-guides/0.11-0.12/_index.md +++ b/content/learn/migration-guides/0.11-0.12/_index.md @@ -436,7 +436,7 @@ my_system.map(bevy_utils::error)
ECS
-The type `ManualEventIterator` has been renamed to `EventIterator`. Additonally, `ManualEventIteratorWithId` has been renamed to `EventIteratorWithId`. +The type `ManualEventIterator` has been renamed to `EventIterator`. Additionally, `ManualEventIteratorWithId` has been renamed to `EventIteratorWithId`. ### [Replaced `EntityCommand` Implementation for `FnOnce`](https://github.com/bevyengine/bevy/pull/9604) @@ -961,7 +961,7 @@ var model = affine_to_square(mesh[instance_index].model);
Rendering
-The `ComputedVisibilty` component has been split into `InheritedVisiblity` and +The `ComputedVisibility` component has been split into `InheritedVisibility` and `ViewVisibility`. Replace any usages of `ComputedVisibility::is_visible_in_hierarchy` with `InheritedVisibility::get`, and replace `ComputedVisibility::is_visible_in_view` with `ViewVisibility::get`. @@ -983,7 +983,7 @@ commands.spawn(VisibilityBundle { ```rust // 0.11: -fn my_system(q: Query<&ComputedVisibilty>) { +fn my_system(q: Query<&ComputedVisibility>) { for vis in &q { if vis.is_visible_in_hierarchy() { @@ -995,7 +995,7 @@ fn my_system(q: Query<&InheritedVisibility>) { ```rust // 0.11: -fn my_system(q: Query<&ComputedVisibilty>) { +fn my_system(q: Query<&ComputedVisibility>) { for vis in &q { if vis.is_visible_in_view() { @@ -1007,7 +1007,7 @@ fn my_system(q: Query<&ViewVisibility>) { ```rust // 0.11: -fn my_system(mut q: Query<&mut ComputedVisibilty>) { +fn my_system(mut q: Query<&mut ComputedVisibility>) { for vis in &mut q { vis.set_visible_in_view(); @@ -1151,7 +1151,7 @@ Manual implementations of `AsBindGroup` will need to be adjusted, the changes ar
Rendering
-`MeshPipeline::view_layout` and `MeshPipeline::view_layout_multisampled` have been replaced with a private array to accomodate for variable view bind group layouts. To obtain a view bind group layout for the current pipeline state, use the new `MeshPipeline::get_view_layout()` or `MeshPipeline::get_view_layout_from_key()` methods. +`MeshPipeline::view_layout` and `MeshPipeline::view_layout_multisampled` have been replaced with a private array to accommodate for variable view bind group layouts. To obtain a view bind group layout for the current pipeline state, use the new `MeshPipeline::get_view_layout()` or `MeshPipeline::get_view_layout_from_key()` methods. ### [Update shader imports](https://github.com/bevyengine/bevy/pull/10180)