Scripting

Search The Documentation:

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

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

Example:

1
obj.shapesLine(start, end, color, thickness = 1, dashed, endColor, roundedEnd)
Tags
Was this article helpful to you? Yes No

How can we help?