DebugRender
ClassProvides methods to draw primitive visuals for debugging.
- Available on all platforms
Since Lens Scripting v303
Provides methods to draw primitive visuals for debugging. Accessible through global.debugRenderSystem.
Index
Properties
Methods
Extends
Properties
isAutoClear
isAutoClear:
boolean
Currently unused.
Since
Lens Scripting Version 303
Default Value
false
Methods
clear()
clear():
void
Clears any visual on the debug render system.
Returns
void
Since
Lens Scripting Version 303
drawBox()
drawBox(
position,width,height,depth,color):void
Draws a wireframe box.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawBrokenLine()
drawBrokenLine(
points,color):void
Draw a sequence of unconnected line segments (2 points per line).
Parameters
Returns
void
Since
Lens Scripting Version 303
drawCircle()
drawCircle(
position,radius,color):void
Draw a wireframe circle oriented on the XY plane.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawLine()
drawLine(
posA,posB,color):void
Draw a single line segment.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawSolidBox()
drawSolidBox(
position,width,height,depth,color):void
Draws a solid box mesh.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawSolidSphere()
drawSolidSphere(
position,radius,color):void
Draws a solid sphere mesh.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawSolidTriangle()
drawSolidTriangle(
vertex1,vertex2,vertex3,color):void
Draws a filled in triangle.
Parameters
Returns
void
Since
Lens Scripting Version 303
drawSphere()
drawSphere(
position,radius,color):void
Draws a wireframe sphere as a 3 axis-aligned circle.
Parameters
Returns
void
Since
Lens Scripting Version 303
getTypeName()
staticgetTypeName():TypeName<DebugRender>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<DebugRender>
Since
Lens Scripting Version 303
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean