Skip to main content

DeviceTrackingMode

Enum

Tracking modes used by the DeviceTracking component to specify what type of tracking to use.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v272

Index

Enumeration Members

Example

// Set the device tracking mode to World
// @input Component.DeviceTracking deviceTrackingComponent
script.deviceTrackingComponent.requestDeviceTrackingMode(DeviceTrackingMode.World);

Enumeration Members

Rotation

Rotation: number

Use gyroscope tracking (rotation only)

Since

Lens Scripting Version 272


Surface

Surface: number

Use surface tracking (position and rotation)

Since

Lens Scripting Version 272


World

World: number

Use native tracking (position and rotation)

Since

Lens Scripting Version 272