Skip to content

@modoki/engine / rendering / activeFrameId

Function: activeFrameId() ​

activeFrameId(world): number | null

Entity id of the active CameraFrame, or null. Cheap enough to poll each frame so the caller can detect an active-frame switch / removal and re-fit.

Parameters ​

world ​

World

Returns ​

number | null

Built with Modoki.