mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
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:
parent
503b861e3a
commit
bc1f33d50b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue