Skip to main content

Editor.Model.LensActivationCamera

Enum

The various cameras which will be activated when this project's Lens turns on.

Index

Enumeration Members

Example

// LensActivationCamera controls which camera opens when the Lens turns on.
// It is set on project.metaInfo.activationCamera.
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const metaInfo = model.project.metaInfo;

metaInfo.activationCamera = Editor.Model.LensActivationCamera.Front;
console.log('activationCamera set to Front (opens front camera when Lens activates)');

metaInfo.activationCamera = Editor.Model.LensActivationCamera.Rear;
console.log('activationCamera set to Rear (opens rear camera when Lens activates)');

Enumeration Members

Front

Front: number

Opens the front camera by default.


Rear

Rear: number

Opens the back camera by default.