Skip to content

kou-yeung/DeviceOrientationPluginForUnityWebGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages