TextComponent
TextComponent
Native text component
Provides access to a native text component instance
Kind: global class
.alignment ⇒ Alignment
Kind: instance property of TextComponent
Returns: Alignment - Text component alignment
.alignment
Set text component alignment
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
alignment | Alignment | Alignment for the text component. |
.justification ⇒ Justification
Kind: instance property of TextComponent
Returns: Justification - Text component justification
.justification
Set text component justification
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
justification | Justification | Justification for the text component. |
.characterSpacing ⇒ number
Kind: instance property of TextComponent
Returns: number - Text component character spacing
.characterSpacing
Set text component character spacing
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
spacing | number | Character spacing for the text component |
.lineSpacing ⇒ number
Kind: instance property of TextComponent
Returns: number - Text component line spacing
.lineSpacing
Set text component line spacing
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
spacing | number | Line spacing for the text component |
.effect ⇒ TextEffect
Kind: instance property of TextComponent
Returns: TextEffect - Text component effect
.effect
Set text component effect
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
effect | TextEffect | Effect for the text component |
.text ⇒ string
Kind: instance property of TextComponent
Returns: string - Text component text
.text
Set text component text
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
text | string | Text of the text component |
.material
Set material to render the text with
Kind: instance property of TextComponent
Param | Type | Description |
---|---|---|
material | Material | New material |
.material ⇒ Material
Kind: instance property of TextComponent
Returns: Material - Material used to render the text