Scripting

Search The Documentation:

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

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 float value
  • thickness Optional
    • A float value
  • color Optional
    • A string value
  • endColor Optional
    • A string value
  • dashed Optional
    • A boolean value

Example:

1
obj.shapesRing(position, radius = 1, thickness = 1, color, endColor, dashed)
Tags
Was this article helpful to you? Yes No

How can we help?