Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Shapes
  5. shapesPie

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 value
  • startAng Optional
    • A float value
  • endAng Optional
    • A float value
  • color Optional
    • A string value
  • endColor Optional
    • A string value

Example:

1
obj.shapesPie(position, radius = 1, startAng, endAng = 270, color, endColor)
Tags
Was this article helpful to you? Yes No

How can we help?