Lens Scripting API

    Enumeration Type

    Returned from Camera's type property.

    // @input Component.Camera camera

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

    Enumeration Members

    Enumeration Members

    Orthographic: number

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

    Perspective: number

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

    MMNEPVFCICPMFPCPTTAAATR