위와 같이 디바이스의 화면 설정및 디스플레이 시간을 설정할수 있습니다.
ScreenOrientation 값은 Portrait(세로) 모드 이외에도
PortraitUpsideDown 세로모드인데 반대방향
LadscapeLeft 가로모드 왼쪽 기준
LadscapeRight 가로모드 오른쪽 기준으로
AujtoRotation 자동 회전 모드
등이 있습니다.
ScreenOrientation
Description
Describes screen orientation.
Currently this is only relevant on mobile devices.See Also: Screen.orientation.
Variables
| Portrait | Portrait orientation. |
|---|---|
| PortraitUpsideDown | Portrait orientation, upside down. |
| LandscapeLeft | Landscape orientation, counter-clockwise from the portrait orientation. |
| LandscapeRight | Landscape orientation, clockwise from the portrait orientation. |
| AutoRotation | Auto-rotates the screen as necessary toward any of the enabled orientations. |
'유니티 > 스크립트' 카테고리의 다른 글
| GUIText를 사용해서 플레이어 HP 표현 혹은 적 공격 시 점수 표현 (0) | 2014.01.29 |
|---|---|
| 화면 밖을 벗어나는 오브젝트 삭제 하기 (0) | 2014.01.29 |
| 유니티 디바이스 방향 설정 및 디스플레이 시간 설정하기 (0) | 2014.01.29 |
| 유니티 Back 키로 게임 종료 하기 (0) | 2014.01.29 |
| 프리팹을 이용한 물체 동적 생성 및 생성시간 지속 적 감소시키는 법 (0) | 2014.01.29 |
| 유니티 오브젝트 이미지 뒤집기(이미지 플립) (0) | 2014.01.29 |
Trackback 0 And
Comment 0


