UDN
Search public documentation:
MobileScreenOrientationKR
English Translation
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
모바일 화면 방향
문서 변경내역: Jeff Wilson 작성. 홍성진 번역.
개요
![]() | ![]() |
세로(Portrait) | 가로(Landscape) |
방향 설정
UDKGame/Build/iPhone
디렉토리의 UDKGameOverrides.plist
파일에 세팅을 원하는 대로 추가하여 기본 방향을 설정할 수 있습니다. 화면 방향에 관련된 키는 UIInterfaceOrientation
와 UISupportedInterfaceOrientations
(UI 인터페이스 오리엔테이션과 UI 지원 인터페이스 오리엔테이션), 두 가지 입니다. UIInterfaceOrientation
(UI 인터페이스 오리엔테이션)은 시동시에 맞출 방향을 결정하는 반면, UISupportedInterfaceOrientations
(UI 지원 인터페이스 방향)은 바꿀 수 있는 방향을 나타냅니다. UE3 에서는 UIInterfaceOrientation
세팅만 사용하기는 하지만, 둘 다 적절히 사용하도록 하는 것이 좋습니다.
이 plist 키에 유효한 값은 다음과 같습니다:
![]() | ![]() | ![]() | ![]() |
UIInterfaceOrientationPortrait (세로) | UIInterfaceOrientationPortraitUpsideDown (세로 거꾸로) | UIInterfaceOrientationLandscapeRight (가로 우측) | UIInterfaceOrientationLandscapeLeft (가로 좌측) |
UDKGameOverrides.plist
파일의 기존 부분 뒤에 다음과 같이 추가하면 됩니다:
<key>UIInterfaceOrientation</key> <string>UIInterfaceOrientationPortrait</string> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UIFileSharingEnabled</key> <true /> <key>CFBundleIdentifier</key> <string>com.udn.example</string> <key>CFBundleName</key> <string>MyUDKGame</string> <key>CFBundleDisplayName</key> <string>UDK Game</string> <key>UIInterfaceOrientation</key> <string>UIInterfaceOrientationPortrait</string> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array> </dict> </plist>
자동 회전
- mobile enablerotation
- 자동 회전을 켭니다.
- mobile disablerotation
- 자동 회전을 끕니다.

ConsoleCommand()
함수를 사용하면 됩니다. 게임타입이나 플레이어 콘트롤러에서 이런 명령을 쓰면 전체적인 (또는 최소한 게임 단위) 자동 회전 방식을 조절할 수 있습니다.
한 게임타입에 대해 자동 회전을 강제로 끄는 법을 보이는 예제입니다:
class MyGameInfo extends SimpleGame; event InitGame(string Options, out string ErrorMessage) { super.InitGame(Options, ErrorMessage); ConsoleCommand("mobile disablerotation"); }