Skip to content

Commit

Permalink
Fix typos in migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Nov 3, 2023
1 parent a29c65c commit 4c09c90
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/learn/migration-guides/0.11-0.12/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ my_system.map(bevy_utils::error)
<div class="migration-guide-area-tag">ECS</div>
</div>

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)

Expand Down Expand Up @@ -757,11 +757,11 @@ bevy = { version = "0.12", features = ["dynamic_linking"] }
<div class="migration-guide-area-tag">Reflection</div>
</div>

Renamed `NamedTypePathDef::Primtive` to `NamedTypePathDef::Primitive`
Renamed `NamedTypePathDef::Primitive` to `NamedTypePathDef::Primitive`

```rust
// 0.11
let type_path = NamedTypePathDef::Primtive(ident);
let type_path = NamedTypePathDef::Primitive(ident);
// 0.12
let type_path = NamedTypePathDef::Primitive(ident);
```
Expand Down Expand Up @@ -961,7 +961,7 @@ var model = affine_to_square(mesh[instance_index].model);
<div class="migration-guide-area-tag">Rendering</div>
</div>

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`.
Expand All @@ -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() {

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

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

Expand Down Expand Up @@ -1151,7 +1151,7 @@ Manual implementations of `AsBindGroup` will need to be adjusted, the changes ar
<div class="migration-guide-area-tag">Rendering</div>
</div>

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

Expand Down

0 comments on commit 4c09c90

Please sign in to comment.