Unity开发者联盟's Archiver
论坛
›
技术讨论 Technology Answers
› Unity 切回黑屏 UnityPlayerActivity 切换黑屏
kirin77
发表于 2022-1-11 09:27
Unity 切回黑屏 UnityPlayerActivity 切换黑屏
直接在onResume方法里面调用一下mUnityPlayer.windowFocusChanged(true)就可以了.
// Resume Unity @Override protected void onResume() { super.onResume(); mUnityPlayer.resume(); mUnityPlayer.windowFocusChanged(true); }
页:
[1]
查看完整版本:
Unity 切回黑屏 UnityPlayerActivity 切换黑屏