Unity는 에디터와 런타임에 화면을 구성하는 데 사용할 수 있는 기능을 제공합니다.
Android 기기에서 애플리케이션의 화면 방향을 제어할 수 있습니다.방향 변경을 감지하거나 특정 방향을 강제하는 기능은 사용자가 기기를 잡는 방식에 따라 달라지는 동작을 만드는 데 유용합니다.
현재 애플리케이션 방향을 검색하려면 화면 방향 프로퍼티에 액세스하십시오.가능한 방향은 다음과 같습니다.
방향 | 동작 |
---|---|
Portrait | 애플리케이션이 세로 모드이며, 기기가 똑바로 세워져 있고 홈 버튼이 아래쪽에 있을 것으로 예상합니다. |
PortraitUpsideDown | 애플리케이션이 세로 모드이지만 거꾸로 되어 있으며, 기기가 똑바로 세워져 있고 홈 버튼이 위에 있을 것으로 예상합니다. |
LandscapeLeft | 애플리케이션이 가로 모드이며, 기기가 똑바로 세워져 있고 홈 버튼이 오른쪽에 있을 것으로 예상합니다. |
LandscapeRight | 애플리케이션이 가로 모드이며, 기기가 똑바로 세워져 있고 홈 버튼이 왼쪽에 있을 것으로 예상합니다. |
화면 방향을 수동으로 제어하려면, Screen.orientation을 위 방향 중 하나로 설정하거나 ScreenOrientation.AutoRotation을 사용하십시오.자동 회전을 사용하도록 설정한 경우에도 경우에 따라 일부 방향을 비활성화할 수 있습니다.
다음 프로퍼티가 자동 로테이션을 제어합니다.
Android의 멀티 윈도우 모드는 Unity 애플리케이션을 지원합니다.사용자는 Unity 애플리케이션이 포함될 창의 크기를 조정할 수 있으므로 사용자 인터페이스를 비표준 종횡비 및 해상도에 맞게 조정하는 것이 좋습니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.