Skip to content

This tool allows you to create runtime gizmos in unity that also get shown in playmode/build.

License

Notifications You must be signed in to change notification settings

JaySlex/Unity-Runtime-Gizmos-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Runtime-Gizmos-Tool

This tool allows you to create runtime gizmos in unity that also get shown in playmode/build. It can be very usefull in builds to show Trigger or Colliders.

Capture

Features

  • Works in editor/playmode/builds
  • Draw wire cube
  • Draw wire box (custom x y z size)
  • Draw Box collider (Allows to draw a box collider automatically)
  • Works with rotation (unity default gizmos doesnt have rotation)

Example Code

RuntimeGizmosDrawer.cs should be placed on the scene camera in orde to work. RuntimeGizmosDrawer's functions should be called in Update in order to work correctly.

RuntimeGizmosDrawer.DrawWireCube(transform.position, transform.rotation, 1, Color.green);
RuntimeGizmosDrawer.DrawWireBox(transform.position, transform.rotation, new Vector3(1, 2, 3), Color.blue);
RuntimeGizmosDrawer.DrawWireBox(boxCollider, Color.black);

Futur feature

I am currently trying to figure out how to make wire mesh, circle, capsule and cylinder.

Tested on Unity 2022.3.17f1

About

This tool allows you to create runtime gizmos in unity that also get shown in playmode/build.

Topics

Resources

License

Stars

Watchers

Forks