Scripting

Search The Documentation:

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

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:

1
obj.shapesTriangle(positionA, positionB, positionC, colorA, colorB, colorC)
Tags
Was this article helpful to you? Yes No

How can we help?