float oldWidth = 750f; float oldHeight = 1334f; float newWidth = Screen.width; float newHeight = Screen.height; float oldAspect = oldWidth / oldHeight; float newAspect = newWidth / newHeight; //水平方向缩放 float horizontalCompressionRatio = newAspect / oldAspect; //垂直方向缩放 float verticalCompressionRatio = oldAspect / newAspect; //0.462 0.562 FreezeEffecy.localScale =new Vector3(horizontalCompressionRatio, verticalCompressionRatio, 1);

750×1334 分辨率下为全屏显示,那么如何在相机size不改变的情况下使精灵全屏显示呢” />