Hellow.
How to know to access parameters orghographic camera’s width and height on script?
Every references and answers are thankful for me.
Camera.orthographicSize will give you the half size of the vertical dimension. Also from that page, [quote=Unity Script Reference]
Horizontal viewing size varies depending on viewport’s aspect ratio.
[/quote]
If you’re looking for the actual sizes, I suppose you could do something like:
orthoVertical = Camera.main.orthographicSize * 2f;
orthoHorizontal = orthoVertical * Camera.aspect;