From e733892781b1475a6daca887f26baf658e8c937b Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Fri, 5 Jul 2024 12:43:41 -0700 Subject: [PATCH] add entity to error message --- crates/bevy_ui/src/layout/ui_surface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/layout/ui_surface.rs b/crates/bevy_ui/src/layout/ui_surface.rs index d7139fbd7c304..75b4428af0f9e 100644 --- a/crates/bevy_ui/src/layout/ui_surface.rs +++ b/crates/bevy_ui/src/layout/ui_surface.rs @@ -119,7 +119,7 @@ impl UiSurface { taffy_children.push(*taffy_node); } else { warn!( - "Unstyled child in a UI entity hierarchy. You are using an entity \ + "Unstyled child `{child}` in a UI entity hierarchy. You are using an entity \ without UI components as a child of an entity with UI components, results may be unexpected." ); }