유니티(unity)
[unity/android] 유니티에서 export한 안드로이드 프로젝트 스플레쉬 스크린 없애기(Android 12버전)
개발자 고포고
2022. 9. 2. 17:21
반응형
[unity/android] 유니티에서 export한 안드로이드 프로젝트 스플레쉬 스크린 없애기(Android 12버전)
유니티 프로젝트는 unityLibrary / launcher 공통
build.gradle(launcher)
# implementation 'androidx.core:core-splashscreen:1.0.0-beta02' 추가
# compileSdkVersion 31 추가
dependencies {
implementation project(':unityLibrary')
implementation 'androidx.core:core-splashscreen:1.0.0-beta02'
}
android {
compileSdkVersion 31
buildToolsVersion '30.0.3'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
build.gradle(unityLibrary)
# implementation 'androidx.core:core-splashscreen:1.0.0-beta02' 추가
# compileSdkVersion 31 추가
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.core:core-splashscreen:1.0.0-beta02'
}
android {
compileSdkVersion 31
buildToolsVersion '30.0.3'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
gradle.properties
#android.useAndroidX=true 추가
org.gradle.jvmargs=-Xmx4096M
org.gradle.parallel=true
android.useAndroidX=true
unityStreamingAssets=.unity3d
res/values-v31/styles.xml 파일 생성 후
아래 내용 추가
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BaseUnityTheme" parent="android:Theme.Holo.Light.NoActionBar.Fullscreen">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
</style>
</resources>
res/drawable/transparent.png 추가(파일 첨부)
#splash #splashscreen 없애기 #스플레쉬 없애기 #유니티 #안드로이드 #android 12 버전
반응형