During the development of multiple projects in which I was involved, built-in drawing methods of the Unity’s Debug class proved to be a bit limiting. While there is a plethora of Gizmos that can be used, sometimes being able to draw shapes at any point of execution was more useful. In this tutorial I will show you how to create those shapes using mainly Debug.DrawLine and Debug.DrawRay...
Unity – Draw custom Debug shapes
Unity – Draw A Debug Circle – Part 1
While developing a game, drawing a debug circle can be immensely helpful. Inspired by DrawDebugHelpers class of Unreal Engine, I have decided to extend (override) Unity’s Debug class to make that possible. This tutorial is a part of tutorial series Unity – Draw Custom Debug Shapes How to Draw a Circle Drawing a sphere can be done using some basic trigonometry operations. Instead of a...
Unity – Draw A Debug Circle – Part 2
In previous part we have seen how a circle can be defined using the basic trigonometry equations. In this part we will see how to transform that knowledge into code and use it in an actual Unity project. This tutorial is a part of tutorial series Unity – Draw Custom Debug Shapes Extending Debug Class In this tutorial we will create one additional Debug Draw method. To make future usage of...