Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Built-In Functions
  5. onDrawShapes

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:

1
2
3
function onDrawShapes(cameraName)
    obj.shapesLine("0,0,0","1,1,1","1,1,1,1", 1, false,"1,1,1,1",false)
end
Tags
Was this article helpful to you? Yes No

How can we help?