toColor

Platform Compatibility PC Mac OSX Oculus Quest X X X Convert R,G,B or R,G,B,A values separately into a 0,0,0,0 format string Parameters: r A float value g A float value b A float value a Optional A float value Example: 1obj.toColor(r, g, b, a = 1f)

shapesTransparent

Platform Compatibility PC Mac OSX Oculus Quest X X – Set Shapes to support transparency or not, NOTE: transparency mode may impact layering/sorting order Parameters: _tf A boolean value Example: 1obj.shapesTransparent(_tf)

shapesQuad

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a quad with optional colors at each corner. Must be called in onDrawShapes function Parameters: positionA A string value positionB A string value positionC A string value positionD A string value colorA A string value colorB A string value colorC A string value colorD … Read more shapesQuad

shapesTriangle

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a triangle with optional colors at each corner. Must be called in onDrawShapes function Parameters: positionA A string value positionB A string value positionC A string value colorA A string value colorB A string value colorC A string value Example: 1obj.shapesTriangle(positionA, positionB, positionC, colorA, … Read more shapesTriangle

shapesArc

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a Arc variant of Disc shape with inner radius, thickness, start angle, end angle, optional color, optional end color, optional dash setting. rotates to face direction of the object calling the script in 3D. Must be called in onDrawShapes function Parameters: position A string … Read more shapesArc

shapesRing

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a Ring variant of Disc shape with inner radius, thickness, optional color, optional end color, optional dash setting. Rotates to face direction of the object calling the script in 3D. Must be called in onDrawShapes function Parameters: position A string value radius Optional A … Read more shapesRing

shapesPie

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a Pie variant of Disc shape with radius, start angle, end angle, optional color, optional end color, rotates to face direction of the object calling the script in 3D. Must be called in onDrawShapes function Parameters: position A string value radius Optional A float … Read more shapesPie

shapesDisc

Platform Compatibility PC Mac OSX Oculus Quest X X X Draw a Disc shape with radius, optional color, optional end color, rotates to face direction of the object calling the script in 3D. Must be called in onDrawShapes function Parameters: position A string value radius Optional A float value color Optional A string value endColor … Read more shapesDisc

shapesLine

Platform Compatibility PC Mac OSX Oculus Quest X X – Draw a line using Shapes with start position, end position, optional color, optional thickness, optionally if it’s dashed, optionally a blended ending color, optionally rounded ends. Must be called in onDrawShapes function Parameters: start A string value end A string value color A string value … Read more shapesLine

onDrawShapes

Platform Compatibility PC Mac OSX Oculus Quest X X – onDrawShapes is called when the camera is rendering and Shapes code can be executed here to draw on top of the camera frame Parameters: cameraName The string name of the camera calling the script Example: 123function onDrawShapes(cameraName)     obj.shapesLine("0,0,0","1,1,1","1,1,1,1", 1, false,"1,1,1,1",false) end