🔹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.

// var textId1 = IDE.addTexttoScene({
    input: 'Sheen Velvet Cair',
    color: 'Grey',
    position: [0, 0, 0],
    rotation: [0, 0, 0],
    scale: [0.2, 0.2, 0.2],
    handleOnClick: handleClickFunction
})

Last updated