Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2020.3.28f1 | Compatible | Compatible | Compatible |
Supports Unity 2020.3.28f1 or higher.
Do you working with Unity's LocationService API but on WebGL it's doesn't work and not get geocoordinates?
Well, with this asset you'll get available geolocation coordinates in a simple way.
It work in Unity WebGL, thanks to UniTask!
Yes, because the geolocation work in an async way, then this asset WORK in async way with all mobile browsers including Chrome and Safari.
Don't trust other plugins that don't use UniTask!
Two requirements:
- your build folder on your server must be accessed with HTTPS://
- you must install UniTask (it's FREE) prior to install this asset in your Unity WebGL project
To download UniTask: https://github.com/Cysharp/UniTask
I included a very small sample project with full source code, no hidden code, no DLL or other!
Do you want test it?
Here the live demo: https://fabiocarucci.it/geolocationwebgldemo/index.html
(see it from your mobile device for better precision. Remember to authorize the geolocation in the device settings).
For any help contact me!
And if you like my asset, please drop a review!
Many thanks and enjoy!
The music in the video - Credits:
Pepper's Funk di Audionautix è un brano concesso in uso tramite licenza Creative Commons Attribution 4.0. https://creativecommons.org/licenses/by/4.0/
Artista: http://audionautix.com/
Geolocation for WebGL using UniTask
