Photon Quantum 3.0.0

Static Public Member Functions | Static Public Attributes | List of all members
Quantum.DebugDraw Class Reference

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 Public Member Functions

static void Box (Draw.DebugBox box)
 The action to call on Draw.Box. More...
 
static void Capsule (Draw.DebugCapsule capsule)
 The action to call on Draw.Capsule. More...
 
static void Circle (Draw.DebugCircle circle)
 The action to call on Draw.Circle. More...
 
static void Clear ()
 Clear everything still in the queues. More...
 
static void DrawAll ()
 Obsolete More...
 
static Material GetMaterial (ColorRGBA color)
 Return the debug shape drawing material based on the color. Will set the main color on the material. More...
 
static void Line (Draw.DebugLine line)
 The action to call on Draw.Line. More...
 
static void OnPostRender (Camera camera)
 Must be called from Unity callback OnPostRenderInternal to draw all debug shapes on top of everything else. More...
 
static void Ray (Draw.DebugRay ray)
 The action to call on Draw.Ray. More...
 
static void Rectangle (Draw.DebugRectangle rectangle)
 The action to call on Draw.Rectangle. More...
 
static void Sphere (Draw.DebugSphere sphere)
 The action to call on Draw.Sphere. More...
 
static void TakeAll ()
 Transfer all items from the locked queue to the internal draw shape arrays. More...
 

Static Public Attributes

static bool IsEnabled = true
 Globally toggle on/off any simulation debug shape drawing. More...
 

Detailed Description

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.

Member Function Documentation

◆ Ray()

static void Quantum.DebugDraw.Ray ( Draw.DebugRay  ray)
inlinestatic

The action to call on Draw.Ray.

Parameters
rayRay to be drawn in the view.

◆ Line()

static void Quantum.DebugDraw.Line ( Draw.DebugLine  line)
inlinestatic

The action to call on Draw.Line.

Parameters
lineThe line information to draw in the view.

◆ Circle()

static void Quantum.DebugDraw.Circle ( Draw.DebugCircle  circle)
inlinestatic

The action to call on Draw.Circle.

Parameters
circleCircle information

◆ Sphere()

static void Quantum.DebugDraw.Sphere ( Draw.DebugSphere  sphere)
inlinestatic

The action to call on Draw.Sphere.

Parameters
sphereSphere information

◆ Rectangle()

static void Quantum.DebugDraw.Rectangle ( Draw.DebugRectangle  rectangle)
inlinestatic

The action to call on Draw.Rectangle.

Parameters
rectangleRectangle information

◆ Box()

static void Quantum.DebugDraw.Box ( Draw.DebugBox  box)
inlinestatic

The action to call on Draw.Box.

Parameters
boxBoc information

◆ Capsule()

static void Quantum.DebugDraw.Capsule ( Draw.DebugCapsule  capsule)
inlinestatic

The action to call on Draw.Capsule.

Parameters
capsuleCapsule 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
colorColor
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

Obsolete

◆ 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
cameraThe scene camera

Member Data Documentation

◆ IsEnabled

bool Quantum.DebugDraw.IsEnabled = true
static

Globally toggle on/off any simulation debug shape drawing.