Android
2013.11.29 01:08
[유니티3D엔진] NGUI 해상도 비율적으로 풀화면
조회 수 81600 추천 수 0 댓글 0
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;
}