Simple drawing interface abstraction (intended for debug drawing, not production!) with statically-accessible backend implementations via HyperMegaLines, Unity Debug drawing, and Unity Gizmo drawing.
More...
Simple drawing interface abstraction (intended for debug drawing, not production!) with statically-accessible backend implementations via HyperMegaLines, Unity Debug drawing, and Unity Gizmo drawing.
Definition at line 19 of file Drawer.cs.
◆ Line() [1/2]
void Leap.Unity.Drawer.Line |
( |
Vector3 |
a, |
|
|
Vector3 |
b |
|
) |
| |
◆ Line() [2/2]
void Leap.Unity.Drawer.Line |
( |
Vector3 |
a, |
|
|
Vector3 |
b, |
|
|
Color? |
color |
|
) |
| |
◆ Lines()
void Leap.Unity.Drawer.Lines |
( |
System.Action< System.Action< Vector3, Vector3 > > |
drawLineFuncFunc, |
|
|
Color? |
color = null |
|
) |
| |
◆ MaybePushMatrix()
bool Leap.Unity.Drawer.MaybePushMatrix |
( |
Matrix4x4? |
m | ) |
|
◆ MaybeSetColor()
void Leap.Unity.Drawer.MaybeSetColor |
( |
Color? |
maybeColor | ) |
|
◆ PopMatrix()
void Leap.Unity.Drawer.PopMatrix |
( |
| ) |
|
◆ PushMatrix()
void Leap.Unity.Drawer.PushMatrix |
( |
Matrix4x4 |
m | ) |
|
◆ Sphere()
void Leap.Unity.Drawer.Sphere |
( |
Vector3 |
center = default(Vector3) , |
|
|
float |
radius = 1f , |
|
|
Color? |
color = null , |
|
|
Matrix4x4? |
matrix = null |
|
) |
| |
◆ _currMatrix
Matrix4x4 Leap.Unity.Drawer._currMatrix = Matrix4x4.identity |
◆ _matrices
Stack<Matrix4x4> Leap.Unity.Drawer._matrices |
◆ implDrawLine
System.Action<Vector3, Vector3> Leap.Unity.Drawer.implDrawLine |
◆ implDrawUnitSphere
System.Action<Matrix4x4> Leap.Unity.Drawer.implDrawUnitSphere |
◆ implSetColor
System.Action<Color> Leap.Unity.Drawer.implSetColor |
◆ isActiveAndEnabled
bool Leap.Unity.Drawer.isActiveAndEnabled = true |
◆ color
Color Leap.Unity.Drawer.color |
|
set |
Calls the setColor
delegate.
Definition at line 26 of file Drawer.cs.
◆ UnityDebugDrawer
Drawer Leap.Unity.Drawer.UnityDebugDrawer |
|
staticget |
◆ UnityGizmoDrawer
Drawer Leap.Unity.Drawer.UnityGizmoDrawer |
|
staticget |
For use in OnDrawGizmos and OnDrawGizmosSelected.
Definition at line 87 of file Drawer.cs.
◆ UnityGizmoHandlesDrawer
Drawer Leap.Unity.Drawer.UnityGizmoHandlesDrawer |
|
staticget |
For use in OnDrawGizmos and OnDrawGizmosSelected via the Handles API. By default, draws on top of any scene geometry.
Definition at line 107 of file Drawer.cs.
The documentation for this class was generated from the following file: