🔹Add Object to The Scene

addObjecttoScene:: to add Object to the scene (returns objId of the object)

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

opacity

default: 1

optional

float

Units

handleOnClick

OnClickFunction

optional

-

-

// 
var objId = IDE.addObjecttoScene({
    assetName: 'ASSETglb', //glb object name
    position: [0, 0, 0],
    scale: [1, 1, 1],
    rotation: [0, 0, 0],
    handleOnClick: handleClickFunction	
})

removeObjectfromScene:

// IDE.removeObjectfromScene({ refId: objId })

Last updated