Skip to content

Commit

Permalink
Update doc comments on Text2dBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Mar 29, 2022
1 parent ea31706 commit a52f3a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_text/src/text2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ pub struct Text2dSize {
}

/// The maximum width and height of text. The text will wrap according to the specified size.
/// Characters out of the bounds after wrapping will be truncated.
///
/// Note: only characters that are completely out of the bounds will be truncated, so this is not a
/// reliable limit if it is necessary to contain the text strictly in the bounds. Currently this
/// component is mainly useful for text wrapping only.
#[derive(Component, Copy, Clone, Debug, Reflect)]
#[reflect(Component)]
pub struct Text2dBounds {
Expand Down

0 comments on commit a52f3a2

Please sign in to comment.