How is camera.aspect value computed?

As per title, how is camera.aspect value computed? (where camera is of type Camera, of course)
I’m using an orthographic camera and I’ve tried computing the following two expressions:

(float)Screen.width / Screen.height
(float)Camera.main.pixelWidth / Camera.main.pixelHeight

But both those values are different from camera.aspect.

Edit: I know camera.ResetAspect can be called to re-compute camera.aspect, I’m interested in finding out how.

Seems to match up for me ok (Camera.aspect matches screen.width/screen.height). Perhaps it’s related to something else in your camera setup - have you modified the viewport rect?

1 Like

Yes, that’s the cause.
Thank you.