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

RB.FontInlineIndexSetup

Method  -  Static

public static void FontInlineIndexSetup(FontAsset [] fonts)
public static void FontInlineIndexSetup(List< FontAssetfonts)

Parameters

fonts FontAsset [] FontAsset array
fonts List< FontAsset > FontAsset list

Returns

Nothing.

Description

Setup a FontAsset index table to be used with inline font changes when printing text.

Example

public void Initialize()
{
    FontAsset[] fontIndices = new FontAsset[] { myFontSmall, myFontWide };
    RB.FontInlineIndexSetup(fontIndices);
}

public void Render()
{
    RB.Print(new Vector2i(00), Color.black, "Inline font @g01changes@g99 are great!");
}

See Also

RB.Print

See Docs

Features - Inline Font Changes