Skip to content Skip to sidebar Skip to footer

Black Screen Unity Subview In Android

I try to using unity scene as a subview for my Android app. I did like this tutorial http://forum.unity3d.com/threads/using-unity-android-in-a-sub-view.98315/ . But I got a problem

Solution 1:

Yor are specifying layout params in the code like this

LayoutParams lp = new LayoutParams(600, 800);

If you remove this line it might work properly.. :)

Solution 2:

found the answer just add this line in your unity project's android library (unityLib) activity tag in your manifest file

android:process=":UnityKillsMe"

and also its mandatory to implement onWindowFocusChangedListener

onWindowFocusChanged(){m_UnityPlayer.windowFocusChanged(hasFocus);}

It will be solved https://gamedev.stackexchange.com/questions/134347/android-black-screen-with-unity-app-in-subview

Post a Comment for "Black Screen Unity Subview In Android"