AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.TEXT_OVERFLOW_WRAP

Variable  -  Const

Type

const int

Description

Wrap text to the next line so that it doesn't overflow the given text area horizontally.

Text printed within a rectangular area using the RB.Print method, or measured using the RB.PrintMeasure method could potentially overflow the given area. When an overflow happens this flag indicates that the text should be wrapped to the next line. Wrapping happens on whole word boundaries, if possible.

This flag can be OR'ed with RB.TEXT_OVERFLOW_CLIP.

Example

void Render()
{
    // Draw text in a rectangular area, clip off any letters that don't fit.
    RB.Print(
        new Rect2i(1001003248),
        Color.white,
        RB.ALIGN_H_CENTER | RB.ALIGN_V_CENTER | RB.TEXT_OVERFLOW_WRAP,
        "This long text might need to be wrapped!");
}

See Also

RB.Print
RB.PrintMeasure
RB.TEXT_OVERFLOW_CLIP

See Docs

Features - Text Clipping