Skip to content

Commit

Permalink
fix: 'Resource ID out of range in GetResource' error in overlay rende…
Browse files Browse the repository at this point in the history
…ring mode

#308
  • Loading branch information
SAMYTHEBIGJUICY authored and mob-sakai committed Jun 14, 2024
1 parent d3c6c63 commit ff78b6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Packages/src/Runtime/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,12 @@ private Camera GetBakeCamera()
_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;
}
Expand Down

0 comments on commit ff78b6f

Please sign in to comment.