Class ShapeGizmos
Helper class for drawing shapes using gizmos.
Inheritance
System.Object
ShapeGizmos
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ProjectDawn.Geometry3D
Assembly: ProjectDawn.Geometry.dll
Syntax
public static class ShapeGizmos
Methods
| Improve this Doc View SourceDrawDottedLine(Line, Single, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawDottedLine(Line line, float screenSpaceSize, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Line | line | |
| System.Single | screenSpaceSize | |
| UnityEngine.Color | color |
DrawDottedLine(float3, float3, Single, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawDottedLine(float3 from, float3 to, float screenSpaceSize, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Mathematics.float3 | from | |
| Unity.Mathematics.float3 | to | |
| System.Single | screenSpaceSize | |
| UnityEngine.Color | color |
DrawLine(Line, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawLine(Line line, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Line | line | |
| UnityEngine.Color | color |
DrawLine(float3, float3, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawLine(float3 from, float3 to, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Mathematics.float3 | from | |
| Unity.Mathematics.float3 | to | |
| UnityEngine.Color | color |
DrawSolidBox(Box, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawSolidBox(Box box, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Box | box | |
| UnityEngine.Color | color |
DrawSolidSphere(Sphere, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawSolidSphere(Sphere circle, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Sphere | circle | |
| UnityEngine.Color | color |
DrawSolidSphere(float3, Single, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawSolidSphere(float3 point, float size, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Mathematics.float3 | point | |
| System.Single | size | |
| UnityEngine.Color | color |
DrawWireBox(Box, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawWireBox(Box box, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Box | box | |
| UnityEngine.Color | color |
DrawWireSphere(Sphere, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawWireSphere(Sphere sphere, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Sphere | sphere | |
| UnityEngine.Color | color |
DrawWireSphere(float3, Single, Color)
Declaration
[Conditional("UNITY_EDITOR")]
public static void DrawWireSphere(float3 point, float size, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Mathematics.float3 | point | |
| System.Single | size | |
| UnityEngine.Color | color |