Skip to content

Commit 5fbd2e6

Browse files
UiDebugOptions migration guide (#21088)
# Objective Fixes #21036 --------- Co-authored-by: Alice Cecile <[email protected]>
1 parent 89193cc commit 5fbd2e6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Move UI Debug Options from `bevy_ui` to `bevy_ui_render`
3+
pull_requests: [18703]
4+
---
5+
6+
The `UiDebugOptions` resource used for controlling the UI Debug Overlay has been moved from the internal `bevy_ui` crate to the `bevy_ui_render` crate, and is now accessible from the prelude of `bevy_ui_render` and, as before, from the prelude of `bevy`:
7+
8+
```rust
9+
// 0.16
10+
use bevy::prelude::*;
11+
// or
12+
use bevy::ui::UiDebugOptions;
13+
14+
// 0.17
15+
use bevy::prelude::*;
16+
// or, if you are not using the full `bevy` crate:
17+
// use bevy_ui_render::prelude::*;
18+
19+
let options = world.resource_mut::<UiDebugOptions>();
20+
```

0 commit comments

Comments
 (0)