@modoki/engine / rendering / setActiveCameraFrame
Function: setActiveCameraFrame()
setActiveCameraFrame(
world,ref):boolean
Switch which CameraFrame is active at runtime: set the referenced frame's active=true and every other CameraFrame's active=false. The framing loop then blends the camera into it over the TARGET frame's blendTime/blendEase. Ref by name (EntityAttributes.name), guid, or entity id. Returns true if a matching frame was found.
Parameters
world
World
ref
guid?
string
id?
number
name?
string
Returns
boolean