DeviceTrackingMode
EnumTracking 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.
Since Lens Scripting v272
Index
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