TagDevelopment

Unity – Draw A Debug Cylinder and Capsule

U

This tutorial is the last part of the Unity – Draw Custom Debug Shapes series. In this part we will cover two more shapes that are commonly used for debugging in game development projects. Since some of the concepts are already explained in the previous parts, I suggest you to go over those as well. Cylinder Cylinder can be defined as a prism with circle as it’s base. In their most...

Unity – Draw A Debug Circle – Wrap-up

U

Through the previous four parts of this tutorial we have seen how to draw a debug circle in Unity, how to rotate it in 3D space and how to draw arcs, segments and sectors of a circle. In this part we will cover some basic C# concepts to make the extension functions a bit more useful and convenient. Examples show in this tutorial are just a first step from which you should be able to modify the...

Unity – Draw A Debug Circle – Part 4

U

In previous part we have seen how to draw a debug circle with rotation in 3D space in Unity project. This tutorial will introduce concepts of circle arc, segment and sector which can be particularly interesting for debugging multiple gameplay elements, for example, NPC field of view, radar cone, circle overlaps, but MOST importantly, they will allow us to draw a Debug Pizza. This tutorial is a...

Unity – Draw A Debug Circle – Part 3

U

In previous part we have seen how to draw a simple debug circle in Unity project. This tutorial will extend that functionality and show how to draw circle with any rotation or axle alignment. Additionally this tutorial introduces some basic concepts about the rotation/orientation in a context of game development. This tutorial is a part of tutorial series Unity – Draw Custom Debug Shapes...

Unity – Draw A Debug Circle – Part 2

U

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...

Unity – Draw A Debug Circle – Part 1

U

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 custom Debug shapes

U

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...

David Zulic

Get in touch

Quickly communicate covalent niche markets for maintainable sources. Collaboratively harness resource sucking experiences whereas cost effective meta-services.