πΉPlay GLB Animation (pre built in GLB file)
refId
objId of the object
required
string
trigger
trigger type of the object
required
βscrollβ | βeventβ
actionName
Assign the click name that needs to be played
required
string
leftX
use only for trigger: βscrollβ, default: 0 (starting point of your trigger)
optional
number
length
default: 200 (duration of your animation)
(use only for trigger: βscrollβ
Optional (60 fps per sec 200 is the default fps)
number
// IDE.playGLBAnimation({
refId: objId,
trigger: 'scroll',
actionName: 'green_open',
leftX: 150,
length: 10,
})
IDE.playGLBAnimation({
refId: objId,
trigger: 'event',
actionName: 'green_open',
})
Last updated