GizmosExtensions

Static class in ChivalrousGames.Common

Description

Helper methods to draw gizmos in the Editor.

Static Methods

DrawWireCapsule
public static void DrawWireCapsule(Vector3 center, float radius, float height);
Parameters
center Vector3 Center.
radius float Radius.
height float Height.
Description

Draws a wire capsule.

DrawWireCircle
public static void DrawWireCircle(Vector3 center, float radius);
Parameters
center Vector3 Center.
radius float Radius.
Description

Draws a wire circle. Uses UnityEditor handles.

DrawWireCone
public static void DrawWireCone(Vector3 baseCenter, float radius, float height);
Parameters
baseCenter Vector3 Base center.
radius float Radius.
height float Height.
Description

Draws a wire cone. Uses UnityEditor handles.

DrawWireArrow
public static void DrawWireArrow(Vector3 coneBaseCenter, float radius, float height);
Parameters
coneBaseCenter Vector3 Cone base center.
radius float Radius.
height float Height.
Description

Draws a wire arrow. Uses UnityEditor handles.

DrawWireCylinder
public static void DrawWireCylinder(Vector3 baseCenter, float radius, float height);
Parameters
baseCenter Vector3 Base center.
radius float Radius.
height float Height.
Description

Draws a wire cylinder. Uses UnityEditor handles.

DrawWirePoint
public static void DrawWirePoint(float length);
Parameters
length float Length of the 6 wire lines.
Description

Draws a wire point. Move the Gizmos.matrix to set where the wire point is drawn.