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
#308
This commit is contained in:
committed by
mob-sakai
parent
d3c6c63a07
commit
ff78b6fe32
@@ -695,6 +695,12 @@ namespace Coffee.UIExtensions
|
|||||||
_orthographicCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity);
|
_orthographicCamera.transform.SetPositionAndRotation(new Vector3(0, 0, -1000), Quaternion.identity);
|
||||||
_orthographicCamera.orthographic = true;
|
_orthographicCamera.orthographic = true;
|
||||||
_orthographicCamera.farClipPlane = 2000f;
|
_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;
|
return _orthographicCamera;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user