C# Class UnityContrib.UnityEngine.DebugEx

Provides a set of helper methods for debugging.
显示文件 Open project: UnityContrib/framework

Public Methods

Method Description
DrawCross3D ( Vector3 position, float size, Color color, float duration = 0.0f, bool depthTest = true ) : void

Draws 3 lines intersecting each other at the specified position.

DrawPath ( NavMeshPath path, Vector3 start, Vector3 end, Color color, float duration = 0.0f, bool depthTest = true ) : void

Draws the specified path.

DrawSphere ( Vector3 position, float radius, Color color, float duration, bool depthTest ) : void

Draws a sphere at the specified position.

Method Details

DrawCross3D() public static method

Draws 3 lines intersecting each other at the specified position.
public static DrawCross3D ( Vector3 position, float size, Color color, float duration = 0.0f, bool depthTest = true ) : void
position UnityEngine.Vector3 /// The position where the 3 lines intersect. ///
size float /// The length of each line. ///
color UnityEngine.Color /// The color of the lines. ///
duration float /// The amount of seconds the line must be visible for. /// A duration of zero shows the line for just one frame. ///
depthTest bool /// A value indicating whether or not the line be obscured by objects closer to the camera? ///
return void

DrawPath() public static method

Draws the specified path.
public static DrawPath ( NavMeshPath path, Vector3 start, Vector3 end, Color color, float duration = 0.0f, bool depthTest = true ) : void
path UnityEngine.NavMeshPath /// The path to draw. ///
start UnityEngine.Vector3 /// The start of the path. ///
end UnityEngine.Vector3 /// The end of the path. ///
color UnityEngine.Color /// The color of the path. ///
duration float /// The amount of seconds the path must be visible for. /// A duration of zero shows the path for just one frame. ///
depthTest bool /// A value indicating whether or not the path be obscured by objects closer to the camera? ///
return void

DrawSphere() public static method

Draws a sphere at the specified position.
public static DrawSphere ( Vector3 position, float radius, Color color, float duration, bool depthTest ) : void
position UnityEngine.Vector3 /// The position to draw the sphere at. ///
radius float /// The radius of the sphere. ///
color UnityEngine.Color /// The color of the sphere. ///
duration float /// The amount of seconds the line must be visible for. /// A duration of zero shows the line for just one frame. ///
depthTest bool /// A value indicating whether or not the line be obscured by objects closer to the camera? ///
return void