Archive

Code Snippet – Draw Debug Rectangle in Unity3D

Not too many words to this. I was searching for quick solution to draw a debug rectangle (ok many rectangles for pathfinding debugging) in Unity3D and found nothing on the internet. Its as easy as follows: void DebugDrawColoredRectangle(Vector3 position, float size, Color color) { Debug.DrawLine(position,... Artikel ansehen