Skip to content

setViewTarget

setViewTarget(host, entity, opts?): void

Defined in: camera/CameraDirector.ts:145

Switch the active view target, optionally blending over time seconds with an easing curve. Records intent; the director applies it on the next frame (snapshotting the current view as the blend start). time<=0 (or no prior view) is an instant cut. Pass the App from host code, or the Res(CameraDirector) state from inside a system.

CameraDirectorHost

number

number

number

void