From ff78b6fe32ceed8ddad50e63dcb7a202eab95266 Mon Sep 17 00:00:00 2001 From: SAMYTHEBIGJUICY <139700621+SAMYTHEBIGJUICY@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:47:32 +0900 Subject: [PATCH] fix: 'Resource ID out of range in GetResource' error in overlay rendering mode #308 --- Packages/src/Runtime/UIParticle.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Packages/src/Runtime/UIParticle.cs b/Packages/src/Runtime/UIParticle.cs index 398ae4d..ee0cb71 100644 --- a/Packages/src/Runtime/UIParticle.cs +++ b/Packages/src/Runtime/UIParticle.cs @@ -695,6 +695,12 @@ namespace Coffee.UIExtensions _orthographicCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity); _orthographicCamera.orthographic = true; _orthographicCamera.farClipPlane = 2000f; + _orthographicCamera.clearFlags = CameraClearFlags.Nothing; + _orthographicCamera.cullingMask = 0; // Nothing + _orthographicCamera.allowHDR = false; + _orthographicCamera.allowMSAA = false; + _orthographicCamera.renderingPath = RenderingPath.Forward; + _orthographicCamera.useOcclusionCulling = false; return _orthographicCamera; }