BoundsExtensions.DebugDraw(Bounds, Color, Single, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws a wire frame Bounds object using Debug.DrawLine.
public static void DebugDraw (this UnityEngine.Bounds bounds, UnityEngine.Color color, float duration = 0, bool depthTest = true);
static member DebugDraw : UnityEngine.Bounds * UnityEngine.Color * single * bool -> unit
<Extension()>
Public Sub DebugDraw (bounds As Bounds, color As Color, Optional duration As Single = 0, Optional depthTest As Boolean = true)
Parameters
- bounds
- UnityEngine.Bounds
The Bounds to draw.
- color
- UnityEngine.Color
Color of the line.
- duration
- Single
How long the line should be visible for in seconds.
- depthTest
- Boolean
Should the line be obscured by objects closer to the camera?