Skip to main content

GizmosExtended

There has been expanded on the default Unity Gizmos, making it easier to draw complex gizmos such as Arrows, Textures, Icons, Text, Circles... The usage is the same as the regular Unity Gizmos except with the GizmosExtended class instead of the Gizmos class.

using ExtensionTools.Gizmos;
public class GizmosTest : MonoBehaviour
{
private void OnDrawGizmos()
{
GizmosExtended.DrawText(transform.position, "This is a Gizmo", Color.white);
GizmosExtended.DrawArrow(transform.position, transform.position + Vector3.up * 5);
}
}

This is a list of all new Gizmos

Method
DrawCircle
DrawArrow
DrawPath
DrawTexture
DrawIcon
DrawText

Gizmos in URP

When using the Universal Renderpipeline you might come across a warning tellign you that you didn't add the Gizmo Feature to the Render Pipeline.

In this case you want to navigate to your Default Renderer Asset in your project and add the Gizmos Feature.

GizmoFeature