From 780fa13daf3c82e1bb2f5c5802859c1b3c87e3f6 Mon Sep 17 00:00:00 2001 From: yurui <952870061@qq.com> Date: Thu, 15 Aug 2024 15:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=88=AA=E5=9B=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectNLD/Assets/Code/Scripts/Gameplay/Utils/CommonUtils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Utils/CommonUtils.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Utils/CommonUtils.cs index 96b57b9fb94..e3428f1e8af 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Utils/CommonUtils.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Utils/CommonUtils.cs @@ -457,12 +457,11 @@ namespace Gameplay screenTexture = RenderTexturePool.Instance.Create(SCREEN_SNAPSHOT, width, height); // 先渲图 + CameraManager.Instance.SetMainCameraActive(false); Camera uiCamera = CameraManager.Instance.UICamera; - uiCamera.gameObject.SetActive(false); uiCamera.targetTexture = screenTexture; uiCamera.Render(); uiCamera.targetTexture = null; - uiCamera.gameObject.SetActive(true); #region 高斯模糊处理 Material material;