Android

[유니티3D엔진] NGUI 해상도 비율적으로 풀화면

by badung007 posted Nov 29, 2013
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

void Start()

{


}


void OnLevelWasLoaded()

{


}

 


갤럭시 S3 16:9 (1280 x 720)

camera.orthographicSize = (Screen.height / (Screen.width / 16.0f)) / 9.0f;

추가적으로 UIAnchor 까지 사용한다면 최적일것 같다.

NGUI

UICarmera

Update()

{

      camera.orthographicSize = (Screen.height / (Screen.width / 16.0f)) / 9.0f;

}