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

RB.ALIGN_V_CENTER

Variable  -  Const

Type

const int

Description

Center text vertically when printing with RB.Print, or measuring with RB.PrintMeasure.

This flag can be logically OR'ed with other alignment flags.

Example

void Render()
{
    // Draw text vertically centered on the left side of the screen
    RB.Print(
        new Rect2i(00RB.DisplaySize),
        Color.white,
        RB.ALIGN_H_LEFT | RB.ALIGN_V_CENTER,
        "Hello there!");
}

See Also

RB.Print
RB.PrintMeasure

See Docs

Features - Text Alignment