🔹Add Image to the Scene

addImagetoScene: to add image to the scene (returns id of the image)

assetName

asset name

required

string

Unit

position

default: [0, 0, 0]

optional

[float, float, float]

3D Units

rotation

default: [0, 0, 0]

optional

[float, float, float]

Radian

scale

default: [1, 1, 1]

optional

[float, float, float]

3D Units

handleOnClick

OnClickFunction

optional

-

-

// var imageId1 = IDE.addImagetoScene({
    assetName: 'Sheen_Velvet_Cair.png',
    position: [0, 0, 0],
    rotation: [0, 0, 0],
    scale: [0.2, 0.2, 0.2],
    handleOnClick: handleClickFunction 
})

removeImagefromScene:

id

id of image

required

string

// IDE.removeImagefromScene({
    id: imageId1
})

Last updated