From bc1f33d50bd747245a1b7fbd09ae17d81fa7cfca Mon Sep 17 00:00:00 2001 From: jpsikstus <52893351+jpsikstus@users.noreply.github.com> Date: Mon, 25 Sep 2023 23:33:42 +0300 Subject: [PATCH] Add link to `Text2dBundle` in `TextBundle` docs. (#9900) # Objective Some beginners spend time trying to manually set the position of a `TextBundle`, without realizing that `Text2dBundle` exists. ## Solution Mention `Text2dBundle` in the documentation of `TextBundle`. --------- Co-authored-by: Rob Parrett --- 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 7488d5dc41..ac527d2172 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