Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1312646][1321306] Correctly initialize pixel perfect camera rect on awake + Fix wrong orthoSize being updated #4513

Merged
merged 11 commits into from
May 31, 2021
Prev Previous commit
Next Next commit
Fix a bug in pixel perfect camera where it was updating orthosize inc…
…orrectly
  • Loading branch information
kennytann committed May 19, 2021
commit 17f331b60d1948d5743eac57e1cc8ec9a909f5d4
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ void UpdateCameraProperties()

void OnBeginContextRendering(ScriptableRenderContext context, List<Camera> cameras)
{
if (!cameras.Exists(x => x == m_Camera))
return;

UpdateCameraProperties();
PixelSnap();

Expand Down