Skip to main content

Introduction

Component used to display text that can automatically be localized.

"UI Label_Unity Text"

Fields#

NameDescription
LocalizeLocalize text
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.
unityTextComponent 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