From cb884b65a7634aac85ab474f0a25dadd78c00f8e Mon Sep 17 00:00:00 2001 From: Jukka-Pekka Date: Fri, 22 Sep 2023 15:07:47 +0300 Subject: [PATCH 1/2] Add link to `Text2dBundle` in `TextBundle` docs. --- crates/bevy_ui/src/node_bundles.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_ui/src/node_bundles.rs b/crates/bevy_ui/src/node_bundles.rs index 7488d5dc41271..7ca5604856865 100644 --- a/crates/bevy_ui/src/node_bundles.rs +++ b/crates/bevy_ui/src/node_bundles.rs @@ -159,6 +159,9 @@ pub struct AtlasImageBundle { #[cfg(feature = "bevy_text")] /// A UI node that is text +/// +/// The positioning of this node is controlled by the UI layout system. If you need manual control, +/// use [`Text2dBundle.`](`bevy_text::Text2dBundle`) #[derive(Bundle, Debug)] pub struct TextBundle { /// Describes the logical size of the node From f248e72029bdf2c8578aa229da814c4858bfdcef Mon Sep 17 00:00:00 2001 From: jpsikstus <52893351+jpsikstus@users.noreply.github.com> Date: Sat, 23 Sep 2023 04:31:52 +0300 Subject: [PATCH 2/2] Update crates/bevy_ui/src/node_bundles.rs Co-authored-by: Rob Parrett --- crates/bevy_ui/src/node_bundles.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/node_bundles.rs b/crates/bevy_ui/src/node_bundles.rs index 7ca5604856865..ac527d2172f80 100644 --- a/crates/bevy_ui/src/node_bundles.rs +++ b/crates/bevy_ui/src/node_bundles.rs @@ -161,7 +161,7 @@ pub struct AtlasImageBundle { /// A UI node that is text /// /// The positioning of this node is controlled by the UI layout system. If you need manual control, -/// use [`Text2dBundle.`](`bevy_text::Text2dBundle`) +/// use [`Text2dBundle`](bevy_text::Text2dBundle). #[derive(Bundle, Debug)] pub struct TextBundle { /// Describes the logical size of the node