유니티모바일

·Unity/Tip
문제UI가 아니라 게임 오브젝트가 기기별로 해상도 대응이 안돼서 잘려서 표현이 된다.이럴 때 해결 방법은 카메라 Rect 조절하기  방법using UnityEngine;public class CameraAdjust : MonoBehaviour{ void Start() { Camera camera = GetComponent(); Rect rect = camera.rect; float scaleheight = ((float)Screen.width / Screen.height) / ((float)9 / 16); // (가로 / 세로) float scalewidth = 1f / scaleheight; if (scaleheight     결과
석영
'유니티모바일' 태그의 글 목록