View on Asset Store (opens in new tab)
Package details
- Latest version
- 2.8
- Last updated
- First released
- Unity version
- 2019.4.40 or later
- Package size
- 76 KB
- Files
- 7
- Favorites
- 34
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
GyroscopeAccelerometerWebGL
- Price drop
Gyroscope and accelerometer for the web.
Lowest recorded price
Get 95% off on Asset Store (opens in new tab)Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
GyroscopeAccelerometerWebGL screenshot 1
About this asset
This asset enables you to read the gyroscope and accelerometer information provided by your browser. The main uses of this are VR-like 360 experiences and AR experiences. It’s very flexible and easy to use, full source code included.
Try out this 360 AR experience using this plugin and DeviceCameraWebGL.
Please note that usually only phones have a gyroscope/accelerometer, as such this plugin is targeted to mobile browsers.
If you like my plugin, please consider leaving a review. It helps me immensely and encourages me to improve the plugin further, and other people to support my work :).
From the publisher's Asset Store listing.
Technical details
- Enables you to read the gyroscope and accelerometer data accessed by the browser. All this information is transferred from the javascript side to the C# side of Unity.
- You can detect if you successfully accessed the gyroscope/accelerometer or not. All the errors that can happen in the JS side are transferred to Unity, so you can manage them.
- Works on Safari, Chrome, Firefox, Edge, and Opera.
You need to upload your build to an https(secure http) server. Using http:// or file:// won’t work! I recommend using https-localhost or netlify for local testing. This is not a restriction with my plugin, it’s just how browsers work.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2019.4.40f1 | Compatible | Compatible | Compatible | Compatible |
It's compatible with Unity 2019 or higher.
As listed on the Asset Store.