Skip to main content

Text

Text API allows accessing and modifying the text component.

Properties

content: string

Content of the text.

local content = entity.text.content

entity.text.content = 'Hello world'

lineHeight: number

Line height of text.

local lineHeight = entity.text.lineHeight

entity.text.lineHeight = 1.2

Methods

delete(): void

Delete text component.

entity.text:delete()