250113 TIL

박소희·2025년 1월 13일

Unity_7기

목록 보기
10/94

[5주차]

스플래시 이미지: 앱을 켰을 때 떴다가 사라지는 이미지
Unity tool로 구현
Eidt > Project Setting > Player > Splash Image
image의 Mesh Type: Full Rect로 바꿔주고 사용하기
Draw Mode: All Sequential
Logos에 이미지 추가
Animation: Static

AudioSource

  • 객체에 컴포넌트 추가 후, 스크립트 작성
    - Start(){ audioSource = GetComponent< AudioSource>(); }
  • .PlayOneShot(audioclip); // 소리가 겹치지 않고 한 번만 실행.
  • .Play()

DontDestroyOnLoad(gameObject); // 씬 이동해도 객체가 파괴되지 않음.

싱글톤 예외처리
if(instance == null){
instance = this;
DontDestroyOnLoad(gameObject);
}
else{
Destroy(gameObject);
}

Build
File > Build Setting > 없는 씬 추가, Platform 선택 후 switch platform
Project Setting > Player > Resolution and Presentatoin > Allowed Orientations for Auto Rotation:
-Portrait: 세로 화면
-Landscape: 가로 화면
안드로이드 마켓에 출시하려면
: Other Settings > Configuration: IL2CPP > Target Architectures: ARM64
Publishing Setting > keystore Manager에서 keystore 추가

Edit > Preferences > External Tools > Android 항목 체크

광고
Window > General > Service > Advertisement Legacy 설치 후 Configure
Services > Memebers > DashBoard
Ad 관련 스크립트 추가

https://docs.unity.com/ads/en-us/manual/InitializingTheUnitySDK

출시 시 Ad Initialize의 Test Mode 끄기

0개의 댓글