An open API service indexing awesome lists of open source software.

https://github.com/kou-yeung/deviceorientationpluginforunitywebgl


https://github.com/kou-yeung/deviceorientationpluginforunitywebgl

Last synced: 2 months ago
JSON representation

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