블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2737)
Unity3D (817)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (58)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (53)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
04-20 00:00

Unity 2021.3.14f1

----

 

Android 12 미만(예: Android 9에서 확인됨)에서 갑자기 FullScreen(전체화면)이 안되는 이슈가 생겨서 처리하고 올려 둠.

 

예상으로는 Android 12(API 31) 대응이후 Android 12 미만 디바이스에서 생기는 것 같다.

확인된 걸로는 Android 9에서 아래와 같이 '이 앱은 전체 화면에서는 정상적으로 작동하지 않을 수 있습니다.' 라고 뜬다.

Android 9 설정 화면

 

위 설정이 꺼져있을 때 Android 12미만에서 대충 아래와 같은 느낌으로 뜬다.

FullScreen 꺼져있을 때 참조 이미지

[참조이미지 링크] https://answers.unity.com/questions/1577161/game-not-expanding-to-fill-full-screen-on-s8-andro.html

 

수동으로 '활성화'하면 정상적으로 전체화면으로 보이기는 한데, 처음부터 정상적으로 보여야 될 것 같아서 알아보고 수정해둠.

 

[결론]

수정방법은 의외로 심플하다.

아래 코드를 앱 최초 실행 시 어딘가에 추가해 두자.

Screen.fullScreen = true;

 

밥아저씨 : "참 쉽죠~?"

 

 

[참조] https://forum.unity.com/threads/disable-immersivemode-unity5.313911/#post-3090959

 

Disable ImmersiveMode (Unity5)

Is there a way to disable the immersive mode in Unity 5? It's a cool feature, but IMHO it's not right to presume that this settings is appropriated to...

forum.unity.com

 

[추가]

아래 링크를 보면 android:theme를 써서 전체화면을 만드는 것 같은데 나중에 이것도 테스트 해봐야 될 것 같다.

android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"

 

[참조2] https://gamedev.stackexchange.com/questions/166667/why-do-i-have-to-set-my-unity-app-to-full-screen-manually-on-my-phone

 

Why do I have to set my Unity app to full-screen manually on my phone

When I open my unity app it doesn't go full-screen until I change it in the settings, isn't there a way to do that... it actually isn't a scaling problem or an aspect ratio.... Because you can see ...

gamedev.stackexchange.com

 

[참조3] https://202psj.tistory.com/1342

 

[Unity] 유니티 소프트키 관련

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 출처: https://m.blog.naver.com/PostView.nhn?blogId=uponsky&logNo=220334847464&proxyRefe

202psj.tistory.com

 

반응형
Posted by blueasa
, |