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

FastString.FILL_SPACES

Variable  -  Const

Type

const int

Description

This flag can be used to fill leading number spaces with spaces when appending a number with minimum digits specified.

Example

// Allocate a FastString that can hold up to 256 characters
FastString  fstr = new FastString(256);

void Render() {
    // This will print "123"
    fstr.Set(123);
    RB.Print(new Vector2i(00), Color.white, fstr);

    // This will print "00123"
    fstr.Set(1235FastString.FILL_ZEROS);
    RB.Print(new Vector2i(020), Color.white, fstr);

    // This will print "  123"
    fstr.Set(1235FastString.FILL_SPACES);
    RB.Print(new Vector2i(040), Color.white, fstr);
}

See Also

FastString.Append
FastString.Clear
FastString.FILL_ZEROS

See Docs

Features - Avoid GC with Fast String