Skip to content

Home > @unseenco/backstage-threejs > autoAddCamera

autoAddCamera() function

Registers a Three.js Camera on a Backstage sheet with transform and lens props.

Signature:

typescript
export declare function autoAddCamera(camera: Camera, sheet: ISheet, options?: AutoAddCameraOptions): ISheetObject;

Parameters

ParameterTypeDescription
cameraCameraCamera to bind
sheetISheetBackstage sheet that owns the new object
optionsAutoAddCameraOptionsObject key, scene attachment, excludes, etc.

Returns:

ISheetObject

The Backstage sheet object handle