From 70271ae5e9b264b80b19a340d4f76d0f6eeaad55 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 --- Runtime/UIParticle.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index 398ae4d..ee0cb71 100644 --- a/Runtime/UIParticle.cs +++ b/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; }