DeviceOrientation Plguin For UnityWebGL
Unity WebGL用ジャイロセンサープラグイン
void Start ()
{
DeviceOrientation.DeviceOrientationEvent += OnDeviceOrientationEvent;
}
void OnDeviceOrientationEvent(Vector3 v3)
{
/// you can get device orientation in here
/// when javascript call deviceorientation event
}
http://kou-yeung.mygamesonline.org/DeviceOrientation/index.html