camera

camera.zoomIn

zoomIn(delta: number): Promise<void>

Zoom in by incrementing the scene's z-position toward the camera.

Not undoable. Does not emit any event.

deltanumberAmount to increase the z zoom value (default: 2).

Returns: Promise<void>

Example

await api.camera.zoomIn(4); // zoom in by 4 units