Skip to content

Commit 12cc199

Browse files
committed
Fix example error
1 parent 321de09 commit 12cc199

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ Example | Description
314314
[Transparency UI](../examples/ui/transparency_ui.rs) | Demonstrates transparency for UI
315315
[UI](../examples/ui/ui.rs) | Illustrates various features of Bevy UI
316316
[UI Scaling](../examples/ui/scaling.rs) | Illustrates how to scale the UI
317+
[UI Z-INDEX](../examples/ui/z_index.rs) | Demonstrates z-index for UI
317318

318319
## Window
319320

examples/ui/z_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
8181
// add a node with a global z-index
8282
stacked_nodes.push(spawn_stack_node(
8383
&mut commands,
84-
font_handle.clone(),
84+
font_handle,
8585
Color::PINK,
8686
Some(ZIndex::Global(2)),
8787
UiRect {

0 commit comments

Comments
 (0)