Publisher | Fabio Carucci |
---|---|
File size | 48.77kB |
Number of files | 7 |
Latest version | 1.0.0 |
Latest release date | 2023-05-29 10:14:15 |
First release date | 2023-05-24 01:52:23 |
Supported Unity versions | 2018.4.2 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/