https://github.com/kou-yeung/deviceorientationpluginforunitywebgl
https://github.com/kou-yeung/deviceorientationpluginforunitywebgl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kou-yeung/deviceorientationpluginforunitywebgl
- Owner: kou-yeung
- License: mit
- Created: 2016-09-19T07:58:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T08:22:26.000Z (over 8 years ago)
- Last Synced: 2025-01-19T15:18:58.358Z (4 months ago)
- Language: C#
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeviceOrientationPluginForUnityWebGL
DeviceOrientation Plguin For UnityWebGL
Unity WebGL用ジャイロセンサープラグイン
# How To Use
```
void Start ()
{
DeviceOrientation.DeviceOrientationEvent += OnDeviceOrientationEvent;
}void OnDeviceOrientationEvent(Vector3 v3)
{
/// you can get device orientation in here
/// when javascript call deviceorientation event
}
```# Sample
http://kou-yeung.mygamesonline.org/DeviceOrientation/index.html