Skip to main content

Introduction

Component used to display text that can automatically be localized using Text Mesh Pro.

"Label"

Fields#

NameDescription
Auto SizeAuto-size mode
LocalizeLocalize text
Use Action IconsEnable Action Icons for new Input System
TargetComponent used to display text.
On Text ChangedEvent raised whenever the text changes
On ResizedEvent raised whenever control is resized

Properties#

NameDescription
colorColor to apply to text.
textGet/Set control text. If localize is selected text will automatically be localized.
textMeshProComponent used to display text.
unlocalizedTextText supplied without localization.
alphaGets/Sets the alpha value of the text color

Methods#

NameDescription
CrossFadeColorTweens between current and new color
GetPreferredValuesGet the preferred size of a label
SetSpriteAssetSet the sprite asset for the label