Edit

Share via


BoundsExtensions.DebugDraw(Bounds, Color, Single, Boolean) Method

Definition

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?

Applies to