直接在onResume方法里面调用一下mUnityPlayer.windowFocusChanged(true)就可以了.
// Resume Unity
@Override protected void onResume()
{
super.onResume();
mUnityPlayer.resume();
mUnityPlayer.windowFocusChanged(true);
}
直接在onResume方法里面调用一下mUnityPlayer.windowFocusChanged(true)就可以了.
// Resume Unity
@Override protected void onResume()
{
super.onResume();
mUnityPlayer.resume();
mUnityPlayer.windowFocusChanged(true);
}