Camera.DeviceProperty
EnumUsed in Camera's devicePropertyUsage property.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Used in Camera's devicePropertyUsage property.
Specifies which camera properties should be overridden by device properties.
Index
Example
// @input Component.Camera camera
script.camera.devicePropertyUsage = Camera.DeviceProperty.None;
script.camera.fov = Math.PI * 0.25;
script.camera.aspect = 1.0;
Enumeration Members
All
All:
number
Overrides both aspect and fov with the device's properties.
Aspect
Aspect:
number
Overrides the Camera's aspect property to use the device's aspect ratio instead.
Fov
Fov:
number
Overrides the Camera's fov property to use the device's field of view instead.
None
None:
number
No Camera properties are overridden with device properties.