Table of Contents
ModHelperComponent for a background panel
public class ModHelperText : BTD_Mod_Helper.Api.Components.ModHelperComponent
Inheritance UnityEngine.MonoBehaviour ModHelperComponent ModHelperText
The component that handles the Text rendering
public NK_TextMeshProUGUI Text { get; }
Creates a new ModHelperText
public static BTD_Mod_Helper.Api.Components.ModHelperText Create(BTD_Mod_Helper.Api.Components.Info info, string text, float fontSize=42f, TextAlignmentOptions align=4098);
info
Info
The name/position/size info
text
System.String
The text to display
fontSize
System.Single
Size of font
align
Il2CppTMPro.TextAlignmentOptions
Alignment of text
ModHelperText
The created ModHelperText
Sets the text of this text to the given text
public void SetText(string text);
text
System.String