Skip to content

Commit 20cd993

Browse files
committed
Adjust migration guide
1 parent bfac3b4 commit 20cd993

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

release-content/migration-guides/atmosphere_multicam.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,4 @@ Atmosphere now works correctly with multiple cameras. No action is required for
77

88
`init_atmosphere_buffer` has been removed, and `AtmosphereBuffer` has been changed from a `Resource` to a `Component` attached to each camera entity.
99

10-
If you were directly accessing `AtmosphereBuffer` as a resource, you'll need to query for it instead:
11-
12-
```rust
13-
// Before
14-
fn my_system(atmosphere_buffer: Option<Res<AtmosphereBuffer>>) {
15-
if let Some(buffer) = atmosphere_buffer {
16-
// use buffer
17-
}
18-
}
19-
20-
// After
21-
fn my_system(views: Query<&AtmosphereBuffer, With<Camera3d>>) {
22-
for buffer in &views {
23-
// use buffer
24-
}
25-
}
26-
```
10+
If you were directly accessing `AtmosphereBuffer` as a resource in a render world system, you'll need to query for it as a component on camera entities instead.

0 commit comments

Comments
 (0)