Camera.Type
Lens Studio v2.0.0+
Outer Class: Camera
Description
Returned from Camera’s type
property.
Enum Value | Description |
---|---|
Camera.Type.Perspective |
Simulates how perspective and depth perception work in the real world. Useful for rendering objects in 3D space. |
Camera.Type.Orthographic |
Does not simulate perspective distortion. Useful for 2D effects like Images and Text. |
Examples
// @input Component.Camera camera
if (script.camera.type == Camera.Type.Orthographic) {
var orthoSize = script.camera.getOrthographicSize();
}
Still Looking for help?
Visit Support