Class SerenityLabel
Inheritance
SerenityLabel
Assembly: Serenity.UnityUi.Infrastructure.dll
public sealed class SerenityLabel
Constructors
SerenityLabel(GameObject, TMP_Text)
Declaration
public SerenityLabel(GameObject root, TMP_Text tmp)
Parameters
| Type |
Name |
Description |
| GameObject |
root |
|
| TMP_Text |
tmp |
|
Properties
Declaration
public GameObject GameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
Methods
Declaration
public void SetActive(bool on)
Parameters
| Type |
Name |
Description |
| bool |
on |
|
SetAlignment(TextAlignmentOptions)
Declaration
public void SetAlignment(TextAlignmentOptions alignment)
Parameters
| Type |
Name |
Description |
| TextAlignmentOptions |
alignment |
|
Declaration
public void SetColor(Color color)
Parameters
| Type |
Name |
Description |
| Color |
color |
|
Declaration
public void SetFontSize(float size)
Parameters
| Type |
Name |
Description |
| float |
size |
|
SetText(string)
Declaration
public void SetText(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|