Unity3d Webview Csharp

by kimsama
+

C# port of unity3d-webviw-integration sample on https://github.com/keijiro/unity-webview-integration

( Updated 2 hours ago )

unity3d-webview-csharp

Overview

C# port of unity3d-webviw-integration sample on unity-webview-integration.

Howto

Unity Side

The original sample of keijiro's which is written with Unity's javascript can be found on unity-webview-integration

See Assets/Plugins/WebMediator.cs which does all the magic. It loads specified URL and can be specified page margin and so on. It also does pick message which is sent from webview. You can see for more details on TestInterface.cs

Webview side

See the index.html for the details.

Test

Tested on the following devices:

iPhone

  • iPhone4s on iOS 6.1 (built with Xcode 4.6 on OSX 10.8.2)

Android

  • Samsung Galuxy S2
  • Samsung Galuxy Note II (all built on OSX 10.8.2)

License

See the included LICENSE.txt. (same as unity-webview-integration)