unity3d - Unity android "freezes" with splash image -


i have added custom theme background image serve "splash" image make app nicer while unity player loading.

that's theme definition have

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="theme.test" parent="@android:style/theme.light.notitlebar.fullscreen">     <item name="android:windowbackground">@drawable/launchimage</item>     <item name="android:windowcontentoverlay">@null</item>     <item name="android:windownotitle">true</item>     <item name="android:backgrounddimenabled">false</item> </style> </resources> 

now, when refer theme in androidmanifest.xml like:

<activity android:name="com.unity3d.player.unityplayeractivity" android:theme="@style/theme.test" ... ></activity> 

the game "freezes" – it's hard tell in fact, because displays splash image , ... that's it. logcat doesn't show warnings/errors either.

removing theme or changing android:windowbackground property solid color make game work, window background appears black until game launched.

what correct way set activity background make unity happy?

when image large issue happen. change image smaller , set centercrop attribute may fixed issue. (usually show skip frame in log)

also if use android studio 2.0 there newly issue can find here.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -