ScriptReference/Camera-orthographicSize #753
Replies: 1 comment
-
|
The documentation doesn't directly mention it, but calculating the width of the viewing volume, the orthographicSize should be doubled just like for the height. This is because, as the docs do mention, orthographicSize is the half size of the camera. var height = Camera.main.orthographicSize * 2;
var width = Camera.main.orthographicSize * 2 * Camera.main.aspect; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Camera-orthographicSize
https://docs.unity3d.com/ScriptReference/Camera-orthographicSize.html
Beta Was this translation helpful? Give feedback.
All reactions