- Home /
Unity keep freezing after Camera permission webgl mobile.
Unity keep freezing after the camera permission dialog. After getting permission and refreshing the site, it works. On Editor and computer browser, no problem at all. using 2021.3.01f
*edit I think it is not freezing, more like focus is lost, since if I reselect browser from phone, it works.
Update: I think the phone is not freezing, Javascript still works only c# is not working. When the permission dialogue appear, it stop unity other c# script. No matter what you select, give permission or decline it, the c# will still in stop condition. It only happens in android [tested in mimix2 and google pixel 5] .
update if (!document.hasFocus()) { console.log("nofocus"); } else { console.log("yesFocus"); }
hasfocus return false and window.focus() doesn't help, still giving false.
Your answer
