🔹Add Text to the Scene
addTexttoScene: to add Text to the scene (returns id of text)
input
text value
required
string
position
default: [0, 0, 0]
optional
[float, float, float]
rotation
default: [0, 0, 0]
optional
[float, float, float]
scale
default: [1, 1, 1]
optional
[float, float, float]
font
Font path
optional
string
color
optional
string
fontSize
18
optional
number
opacity
default: 1
optional
number
handleOnClick
OnClickFunction
optional
-
For more text properties visit this.
Last updated