Skip to main content

Camera.Type

Enum

Returned from Camera's type property.

  • 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.

Index

Enumeration Members

Example

// @input Component.Camera camera

if (script.camera.type == Camera.Type.Orthographic) {
var orthoSize = script.camera.getOrthographicSize();
}

Enumeration Members

Orthographic

Orthographic: number

Does not simulate perspective distortion. Useful for 2D effects like Images and Text.


Perspective

Perspective: number

Simulates how perspective and depth perception work in the real world. Useful for rendering objects in 3D space.