Label
Description:
A node for rendering text using a TrueType font.
Class Object: Label Class.
Inherits from: Node.
Label.TextAlign
Type: Enumeration.
Description:
Enumeration for text alignment setting.
Signature:
enum TextAlign
"Left"
"Center"
"Right"
end
alphaRef
Type: Field.
Description:
The alpha threshold value. Pixels with alpha values below this value will not be drawn.
Only works with label.effect = SpriteEffect("builtin:vs_sprite", "builtin:fs_spritealphatest")
.
Signature:
alphaRef: number
textWidth
Type: Field.
Description: