-
Notifications
You must be signed in to change notification settings - Fork 129
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
Screen freezes when opening UnityView two times #75
Screen freezes when opening UnityView two times #75
Comments
I encountered the same issue when I was building on Android and I had to change the source code. The issue happens when the window is being detached and reattached.
Now open UnityView.java and call it here:
|
It really seemed like it could work for us @IbrahimaWane but sadly this does not fix the issue, thanks anyway. |
It's unfortunate because the issue you described is exactly the same one I encountered. Try to use Android Studio Logcat to see the error message. Because mine also was not shown in the react native console. Good luck |
I forgot to mention, try to call |
Thank you @IbrahimaWane, unfortunately it didn't work on my issue. I just realised that when the screen is black, if I lock the phone and switch back to the app, it works. Something to dig there probably. |
Hey @asmadsen, We're really stuck on this issue for quite some time and can't seem to figure it out. |
Hey @Arnaod it have exactly same issue on android 13+, have you been able to solve the issue ? i know it's been a while, but a yes or no might just gi ve me hope if you don't remember the how you fixed it if you fixed it. |
Hi everyone,
I'm getting an head scratching bug for a few days.
My react-native app uses the unityView at several places. I can open it at every place without issues, but when I'm trying to open it two times in a row (either at the same place or different places), the screen freezes.
The screen displays the last frame that unity rendered before closing Unity.
The strangest thing is that the unityView is still running : I can ear the sounds and even click on buttons (if I remember where they are 😄)
The issue looks similar to open issues in the former module like this one for instance .
The former fix seemed to be this, but doesn't work here.
<UnityView style={{ position: 'absolute', left: 0, right: 0, top: 1, bottom: 1 }} />
Relevant code for the modal on RN side :
Did anyone encounter the issue or has any idea on how to fix this?
Thank you,
The text was updated successfully, but these errors were encountered: