void OnDrawGizmos()
 {
     if (m_Camera)
     {
         GizmosEx.DrawViewFrustumEx(m_Camera, -horizontalExtDis, horizontalExtDis, -bottomExtDis, topExtDis, Color.yellow);
     }
 }
Exemple #2
0
    void OnDrawGizmos()
    {
        Camera camera = gameObject.GetComponent <Camera>();

        if (camera)
        {
            GizmosEx.DrawViewFrustumEx(camera, mLeftEx, mRightEx, mDownEx, mUpEx, Color.yellow);
        }
    }