View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 2022.3.4 or later
- Package size
- 17 KB
- Files
- 15
- Favorites
- 6
- Views in the past week
- 5
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
WebGL Geolocation
A simple and clean tool for using Web Geolocation API.
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
WebGL Geolocation screenshot 1
About this asset
This tool is a wrapper of the Web Geolocation API. This tool is also available for download using package manager: com.agava.webgeolocation.
Demo
https://webgeolocation.website.yandexcloud.net
How to use
Add namespace using Agava.WebGeolocation
Use the methods of the static class WebGeolocation
- GetCurrentPosition(onSuccessCallback, onErrorCallback, options) - get the current position of the device
- WatchPosition(onSuccessCallback, onErrorCallback, options) - register a handler function that will be called automatically each time the position of the device changes
- ClearWatch(watchId) - unregister location/error monitoring handlers previously installed using WatchPosition
You can use Samples folder as a guide.
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.4f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.