Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Gizmos.DrawWireSphere

public 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);
	}