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

close #308
  • Loading branch information
SAMYTHEBIGJUICY committed Jun 14, 2024
1 parent cbd9c96 commit 05286ce
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 @@ -605,6 +605,12 @@ private Camera GetBakeCamera()
_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;
}
Expand Down

0 comments on commit 05286ce

Please sign in to comment.