hi im trying to acces mobile sensors when an user opens the website with their mobile phone. But i could’nt figure it out, is it possible to acces mobile sensors in webgl export?
1 Like
tantx
July 5, 2023, 10:10am
2
There are two important thread about this topic:
https://forum.unity.com/posts/9125551/
Hi, Your answer helps me a lot! Now I found that my webGL build could work stable for IOS on itch.io , when I just entered, it even shows the permission access call hint, LinearAccelerationSensor get value after that.
But when I use Andriod + Chrome to visit my link, I found there no any permission call hint, even I already do
if (LinearAccelerationSensor.current != null)
InputSystem.EnableDevice(LinearAccelerationSensor.current);
The LinearAccelerationSensor.read() is no value,…
These helps me yesterday.
Hope it works for you.