Skip to content

Draw debug handles and other GUI elements in the scene view from anywhere in your code base.

License

Notifications You must be signed in to change notification settings

jeffvella/UnityDebugDrawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnityDebugDrawer

Draw debug handles, text and other GUI elements in the scene view from anywhere in your code base.

Now with Burst/Jobs support!

Draw from within Burst jobs thanks to SharedStatic and UnsafeStream.

How it works: Its a static class wrapping the "SceneView.duringSceneGui" event to allow calling of GUI only debug features from outside of OnGUI contexts. You can just use it hassle-free like you would with Debug.DrawLine() etc.

Note: this draws ONLY within the Scene view.

Supported Drawing Styles:

Custom:

  • DrawLabel

Handles:

  • DrawSolidRectangleWithOutline
  • DrawAAConvexPolygon
  • DrawSphere
  • DrawDottedLine
  • DrawDottedWireCube

Debug:

  • DrawArrow
  • DrawLine
  • DrawPoint
  • DrawCircle
  • DrawCone
  • DrawWireCube

... and is easily extensible to other methods you might need.

Dependencies

  • Unity 2019.3.0F6+
  • Unsafe Compilation
  • Unity.Collections
  • Unity.Mathematics
  • Entities 0.4.0
  • Burst
Old Versions

The original project was moved to 'non-jobs-version-backup' branch and can't be used with jobs. It does however have fewer dependencies so might be worth looking at if you're working in older versions of Unity and MonoBehaviors.

About

Draw debug handles and other GUI elements in the scene view from anywhere in your code base.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages