You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
fix: 'Resource ID out of range in GetResource' error in overlay rendering mode
close #308
This commit is contained in:
@@ -605,6 +605,12 @@ namespace Coffee.UIExtensions
|
|||||||
_orthoCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity);
|
_orthoCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity);
|
||||||
_orthoCamera.orthographic = true;
|
_orthoCamera.orthographic = true;
|
||||||
_orthoCamera.farClipPlane = 2000f;
|
_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;
|
return _orthoCamera;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user