weixudong
2020-11-14 c7eb40d135eaba2afa99710cdc7c567f1b0bc878
Assets/Scripts/Core/Camera/ViewPortAdj.cs
@@ -14,16 +14,16 @@
    public void adjViewportRect()
    {
        float wscale = 1080f/Screen.width;
        // River: 动态的处理ViewPortRect.
        float vpscale = (1920f / wscale / Screen.height);
        Rect vpRect = new Rect();
        vpRect.x = 0.0f;
        vpRect.y = (1.0f - vpscale) / 2.0f;
        vpRect.width = 1f;
        vpRect.height = vpscale;
        cachedCamera.rect = vpRect;
        bAdjViewPort = true;
        //float wscale = 1080f/Screen.width;
        //// River: 动态的处理ViewPortRect.
        //float vpscale = (1920f / wscale / Screen.height);
        //Rect vpRect = new Rect();
        //vpRect.x = 0.0f;
        //vpRect.y = (1.0f - vpscale) / 2.0f;
        //vpRect.width = 1f;
        //vpRect.height = vpscale;
        //cachedCamera.rect = vpRect;
        //bAdjViewPort = true;
    }