Develop
Develop
Select your platform

DebugGizmos

Interaction SDK includes DebugGizmos, a helpful visualization tool for rendering points, lines, and axes in your game view. It provides an interface similar to Unity’s Gizmos API, but with a few notable differences:
  • It can be rendered both in and out of playmode, as well as on the headset. For playmode rendering, you can call DebugGizmos methods from within regular Unity lifecycle methods, such as Update and LateUpdate. For editor-time rendering, you can call methods from within Unity OnDrawGizmos methods.
  • It can render lines with thickness. Unlike Gizmos, which renders lines using GPU specific line rendering methods and is sometimes restricted to 1px width lines, DebugGizmos creates both spheres and lines using custom instanced rendering.
  • Under the hood, it uses the PolylineRenderer. class to create a rectangular prism per line segment which is then clipped in the fragment shader to only render a capsule contained within each prism.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon