Lens Scripting API

    Computes boundaries for elements with BaseMeshVisual

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    sceneObject: SceneObject

    The scene object to compute using

    screenTransform: ScreenTransform = ...
    startingBoundaries: Rect
    startingPosition: vec2 = ...

    Accessors

    • get boundaries(): Rect

      The boundaries as a Rect.

      Returns Rect

    • get position(): vec3

      Returns vec3

      local position in world units relative to the parent's center

    • set position(position: vec3): void

      Sets local position in world units relative to the parent's center

      Parameters

      • position: vec3

        desired position

      Returns void

    • get size(): vec2

      Returns vec2

      the size of the rectangle boundaries as (width, height).

    Methods

    MMNEPVFCICPMFPCPTTAAATR