Table of Contents

Class FontUtils

Namespace
Nautilus.Utility
Assembly
Nautilus.dll

Contains references to frequently used Font Assets for use in the TMPro.TextMeshProUGUI component, which is the preferred component for rendering text.

The fonts referenced in this class should not be expected to exist until after the Main Menu scene has been loaded and both the uGUI and uGUI_MainMenu components have been initialized.

public static class FontUtils
Inheritance
FontUtils
Inherited Members

Properties

Aller_Rg

Returns the regular version of the Aller font, referred to internally as 'Aller_Rg SDF'.
public static TMP_FontAsset Aller_Rg { get; }

Property Value

TMP_FontAsset

Aller_W_Bd

Returns a bold alternative of the Aller font, referred to internally as 'Aller_W_Bd SDF'.
public static TMP_FontAsset Aller_W_Bd { get; }

Property Value

TMP_FontAsset

Methods

SetFontInChildren(GameObject, TMP_FontAsset)

Applies the given font to every TMPro.TextMeshProUGUI component within rootGameObject and its children (recursive).
public static void SetFontInChildren(GameObject rootGameObject, TMP_FontAsset font)

Parameters

rootGameObject GameObject
The parent of all affected TMPro.TextMeshProUGUI componentss.
font TMP_FontAsset
The Font Asset to be applied.