You can find the height and width values of an orthographic camera using the way shown below.

public class CameraManager : MonoBehaviour {
public Camera MainCamera;
void Start ()
{
float height = 2f * MainCamera.orthographicSize;
float width = height * MainCamera.aspect;
Debug.Log("Height = " + height + " / Width = " + width);
}

}

Halil Coşgun

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store