From 628b9582b22a3e62894d93f9d1b19290ffd35df6 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 close #308 --- Runtime/UIParticle.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index a43c260..8f212ba 100644 --- a/Runtime/UIParticle.cs +++ b/Runtime/UIParticle.cs @@ -605,6 +605,12 @@ namespace Coffee.UIExtensions _orthoCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity); _orthoCamera.orthographic = true; _orthoCamera.farClipPlane = 2000f; + _orthoCamera.clearFlags = CameraClearFlags.Nothing; + _orthoCamera.cullingMask = 0; // Nothing + _orthoCamera.allowHDR = false; + _orthoCamera.allowMSAA = false; + _orthoCamera.renderingPath = RenderingPath.Forward; + _orthoCamera.useOcclusionCulling = false; return _orthoCamera; }