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 <robparrett@gmail.com>
This commit is contained in:
jpsikstus 2023-09-25 23:33:42 +03:00 committed by GitHub
parent 503b861e3a
commit bc1f33d50b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,6 +159,9 @@ pub struct AtlasImageBundle {
#[cfg(feature = "bevy_text")] #[cfg(feature = "bevy_text")]
/// A UI node that is 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)] #[derive(Bundle, Debug)]
pub struct TextBundle { pub struct TextBundle {
/// Describes the logical size of the node /// Describes the logical size of the node