Gizmos.DrawWireSphere Manual     Reference     Scripting  
Scripting > Runtime Classes > Gizmos
Gizmos.DrawWireSphere

static function DrawWireSphere (center : Vector3, radius : float) : void

Description

Draws a wireframe sphere with center and radius.

var explosionRadius = 5.0;
function OnDrawGizmosSelected () {
// Display the explosion radius when selected
Gizmos.color = Color.white;
Gizmos.DrawWireSphere (transform.position, explosionRadius);
}