Camera.Type
EnumReturned from Camera's type property.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, 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.