AsteroidSpawner.OnDrawGizmosSelected C# (CSharp) Method

OnDrawGizmosSelected() public method

public OnDrawGizmosSelected ( ) : void
return void
    void OnDrawGizmosSelected()
    {
        // We want to draw yellow stuff
        Gizmos.color = Color.yellow;

        // Tell the Gizmos drawer to use our current position and scale
        Gizmos.matrix = transform.localToWorldMatrix;

        // Draw a sphere representing the spawn area
        Gizmos.DrawWireSphere(Vector3.zero, radius);
    }