Developing gameplay mechanics and systems can be challenging, DrawDebugTools (DDT) make it easy for you by offering several draw functions to help you debug visually and know what your code is doing.
Latest release changes (v 2.1):
- Adding function to visualize RaycastHit datas.
- Update 3d text font, now much more clear and beautiful.
- Fixing issues.
- Adding improvements.
- Offes multiple functions to draw different shapes: line, box, sphere, capsule, arrow, cylinder, camera shape… and many many more
- Visualize Raycast Hit infos and other datas are coming soon (Collision infos, Rigidbody forces, AI path….)
- Shapes are drawn and visible in both: scene view and game view
- Offers an on-screen log message function
- Easy to setup and easy to use
- The package includes many examples that demonstrate how to use it
- It has everything you need to visualize gameplay datas
- Support VR
- Optimized to work without impacting your game performance
- Call draw functions from anywhere in your code
- Works on all platforms
- Support all rendering pipelines: HDRP, URP, SRP
- Dedicated support
- DebugCamera: A detachable camera to help you move freely in your scene while running your game in editor or in standalone.
- TimeControl: While in debug camera mode, you have the ability to stop time, slow it down or speed it up.
- Object debug info: While in debug camera mode, you can see the name of the object you are looking at, and the materials applied to that object.
FloatGraph: Visualize value changes of a given float variable.
- FPS Graph: Display an overlay graph that shows the changes of the frame rate per second over time.
- Physic debugger: Display collision shapes and other datas like contact points when a collision occurs, force vectors,
To start working with DrawDebugTools DDT is very easy.
Drag and drop DDT prefab in your scene:
Call drawing functions from your code.
This is an example of drawing a sphere, grid, and a 3d text:
DrawDebugTools.DrawGrid(Position, GridSize, 1.0f, 1.0f); DrawDebugTools.DrawSphere(Position, 1.0f, 12, Color.Green); DrawDebugTools.DrawString3D(Position, Rotation, “SPHERE”, TextAnchor.LowerCenter, Color.White, 1.5f);
The signatures of the functions used are:
DrawDebugTools.DrawGrid(Vector3 Position, float GridSize, float CellSize, float LifeTime = 0.0f); DrawDebugTools.DrawSphere(Vector3 Center, float Radius, int Segments, Color Color, float LifeTime = 0.0f); DrawDebugTools.DrawString3D(Vector3 Position, Quaternion Rotation, string Text, TextAnchor Anchor, Color TextColor, float TextSize = 1.0f, float LifeTime = 0.0f);
The tool is available on asset store:
Thanks for reading
Hello! I have recently purchased this asset and have shot you an email about some issues with it.
Looking forward to future updates on these tools!
Thank you so much for your purchase, I hope you find the tool useful.
I answered you back 😉