View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2021.2.5 or later
- Package size
- 53 KB
- Files
- 13
- Favorites
- 19
- Views in the past week
- 8
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Geolocation for WebGL
Simple wrapper for Javascript Geolocation API. https://developer.mozilla.org/en-US/docs/Web/API/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
Geolocation for WebGL screenshot 1
About this asset
Simple and robust wrapper for Javascript Geolocation API https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_APIUsage:
Add namespace:
using SK.GeolocatorWebGL.Models;
Use one of the API methods:
- SK_Geolocator.GetCurrentLocation(onResult, onError, options); - Get current location if possible.
- SK_Geolocator.WatchLocation(onResult, onError, options); - Add watch on location change. Method returns newly created watchId.
SK_Geolocator.ClearWatch(watchId = null); - Remove watch by ID. If no watchId provided it will try to remove latest watchId
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.2.5f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.