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

FastString.FORMAT_HEX_CAPS

Variable  -  Const

Type

const int

Description

Format hex numbers with upper-case alpha characters.

Example

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

void Render() {
    // This will print "0xdead"
    fstr.Set("0x").Append(0xDEAD0FastString.FORMAT_HEX_SMALL);
    RB.Print(new Vector2i(00), Color.white, fstr);

    // This will print "0xDEAD"
    fstr.Set("0x").Append(0xDEAD0FastString.FORMAT_HEX_CAPS);
    RB.Print(new Vector2i(020), Color.white, fstr);
}

See Also

FastString.Append
FastString.Clear
FastString.FORMAT_HEX_SMALL

See Docs

Features - Avoid GC with Fast String