Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Integration
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/3
Integrate Geolocation for WebGL BUT using UniTask!
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.28f1
Compatible
Compatible
Compatible
Additional compatibility information

Supports Unity 2020.3.28f1 or higher.

Description

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

(not enough ratings)
7 users have favourite this asset
(7)
$35.90
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
48.8 KB
Latest version
1.0.0
Latest release date
May 29, 2023
Original Unity version
2020.3.28
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR