还原截图逻辑

main
yurui 2024-08-15 15:43:40 +08:00
parent e4cb087ef0
commit 780fa13daf
1 changed files with 1 additions and 2 deletions

View File

@ -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;