This class will draw shapes issued by the simulation (e.g. Draw.Sphere(Photon.Deterministic.FPVector3, Photon.Deterministic.FP, ColorRGBA?, bool)) The shape drawing is based on the DEBUG define which is enabled in UnityEditor and development builds. Can be globally toggled of by using IsEnabled.
More...
|
static bool | IsEnabled = true |
| Globally toggle on/off any simulation debug shape drawing. More...
|
|
This class will draw shapes issued by the simulation (e.g. Draw.Sphere(Photon.Deterministic.FPVector3, Photon.Deterministic.FP, ColorRGBA?, bool)) The shape drawing is based on the DEBUG define which is enabled in UnityEditor and development builds. Can be globally toggled of by using IsEnabled.
◆ Ray()
The action to call on Draw.Ray.
- Parameters
-
ray | Ray to be drawn in the view. |
◆ Line()
The action to call on Draw.Line.
- Parameters
-
line | The line information to draw in the view. |
◆ Circle()
The action to call on Draw.Circle.
- Parameters
-
◆ Sphere()
The action to call on Draw.Sphere.
- Parameters
-
◆ Rectangle()
The action to call on Draw.Rectangle.
- Parameters
-
rectangle | Rectangle information |
◆ Box()
The action to call on Draw.Box.
- Parameters
-
◆ Capsule()
The action to call on Draw.Capsule.
- Parameters
-
capsule | Capsule information |
◆ GetMaterial()
static Material Quantum.DebugDraw.GetMaterial |
( |
ColorRGBA |
color | ) |
|
|
inlinestatic |
Return the debug shape drawing material based on the color. Will set the main color on the material.
- Parameters
-
- Returns
- Material
◆ Clear()
static void Quantum.DebugDraw.Clear |
( |
| ) |
|
|
inlinestatic |
Clear everything still in the queues.
◆ TakeAll()
static void Quantum.DebugDraw.TakeAll |
( |
| ) |
|
|
inlinestatic |
Transfer all items from the locked queue to the internal draw shape arrays.
◆ DrawAll()
static void Quantum.DebugDraw.DrawAll |
( |
| ) |
|
|
inlinestatic |
◆ OnPostRender()
static void Quantum.DebugDraw.OnPostRender |
( |
Camera |
camera | ) |
|
|
inlinestatic |
Must be called from Unity callback OnPostRenderInternal to draw all debug shapes on top of everything else.
- Parameters
-
◆ IsEnabled
bool Quantum.DebugDraw.IsEnabled = true |
|
static |
Globally toggle on/off any simulation debug shape drawing.