Lens Scripting API

    Class DebugRender

    Provides methods to draw primitive visuals for debugging. Accessible through global.debugRenderSystem.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    isAutoClear: boolean

    Currently unused.

    Methods

    • Clears any visual on the debug render system.

      Returns void

    • Draws a wireframe box.

      Parameters

      • position: vec3
      • width: number
      • height: number
      • depth: number
      • color: vec4

      Returns void

    • Draw a sequence of unconnected line segments (2 points per line).

      Parameters

      Returns void

    • Draw a wireframe circle oriented on the XY plane.

      Parameters

      Returns void

    • Draw a single line segment.

      Parameters

      Returns void

    • Draws a solid box mesh.

      Parameters

      • position: vec3
      • width: number
      • height: number
      • depth: number
      • color: vec4

      Returns void

    • Draws a solid sphere mesh.

      Parameters

      Returns void

    • Draws a filled in triangle.

      Parameters

      Returns void

    • Draws a wireframe sphere as a 3 axis-aligned circle.

      Parameters

      Returns void

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR