draw sphere gizmo unity

Code Example - draw sphere gizmo unity

                
                        void OnDrawGizmos()
    {
        // Draw a yellow sphere at the transform's position
        Gizmos.color = Color.yellow;
        Gizmos.DrawSphere(transform.position, 1);
    }