Skip to content

@modoki/engine / index / previewTimelineStep

Function: previewTimelineStep()

previewTimelineStep(world, rootId, def, prevT, curT, flags?, index?): void

Editor forward-preview step: advance the panel's playhead from prevT to curT and apply the same fan-out timelineSystem does — poses (keyframe + skeletal seek + activation) AND edge-fires signals/audio/OnSequence over (prevT, curT]. The panel gates the audio + dispatch side effects via setTimelinePreviewActive and snapshots/restores the world around the session. Forward-only, non-looping. justStarted fires the sequence-start + any t=0 marker on the first step from the beginning; justEnded fires the sequence-end on the step that reaches duration.

Parameters

world

World

rootId

number

def

TimelineDef

prevT

number

curT

number

flags?

justEnded?

boolean

justStarted?

boolean

index?

EntityIndex

Returns

void

Built with Modoki.