public Camera _MyCamera;


void Start ()

 {

        UIRoot root = gameObject.GetComponent<UIRoot>();

  // 자동 조절

        root.automatic = true;

        

        root.manualHeight = 480;    

        root.minimumHeight = 480;

        root.maximumHeight = 1280;        

}


void Update ()

{

        float perx = 1024.0f / Screen.width;

        float pery = 768.0f / Screen.height;

        float v = (perx > pery) ? perx : pery;

  m_pCam.GetComponent<Camera>().orthographicSize = v;

}


WRITTEN BY
빨강꼬마

,