void OnDrawGizmosSelected() { if (m_Directional) { GizmosEx.DrawOrtho(transform, m_Aspect, m_Size, 0.01f, m_Range, new Color(0.5f, 0.5f, 0.5f, 0.7f)); } else { GizmosEx.DrawPerspective(transform, m_Aspect, m_Angle, 0.01f, m_Range, new Color(0.5f, 0.5f, 0.5f, 0.7f)); } }
void OnDrawGizmosSelected() { if (orthographic) { GizmosEx.DrawOrtho(transform, aspect, orthographicSize, nearClipPlane, farClipPlane, new Color(0.5f, 0.5f, 0.5f, 0.7f)); } else { GizmosEx.DrawPerspective(transform, aspect, fieldOfView, nearClipPlane, farClipPlane, new Color(0.5f, 0.5f, 0.5f, 0.7f)); } }