Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black background with Unity 2018.4.23f1 #24

Open
matthewhilson opened this issue Aug 11, 2020 · 2 comments
Open

Black background with Unity 2018.4.23f1 #24

matthewhilson opened this issue Aug 11, 2020 · 2 comments

Comments

@matthewhilson
Copy link

The android activity has a black background when using a fresh 2018.4.23f1 project, you can see the progress bar and pause download button, but nothing else is visible, I will upload a screenshot.

Screenshot_20200810-135829

@abivos
Copy link

abivos commented Aug 11, 2020

The same issue occurred when we where integrating this plugin to our game. We just recompiled plugin with different default theme.

I'm not an expert in Android development, but I can explain what to do.
In src/unityOBBDownloader/src/main/AndroidManifest.xml change this line

<activity android:name="com.unity3d.plugin.downloader.UnityDownloaderActivity" />

with

<activity android:name="com.unity3d.plugin.downloader.UnityDownloaderActivity"
            android:theme="@style/AppTheme"
            android:screenOrientation="landscape"/>

And add this line to src/unityOBBDownloader/src/main/res/values/styles.xml in <resources> block

<style name="AppTheme" parent="android:Theme.Holo" />

@matthewhilson
Copy link
Author

Thank you! That works a treat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants