kimsama / unity3d-webview-csharp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

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

License:zlib License


Languages

Language:C# 50.4%Language:Java 33.8%Language:Objective-C++ 15.8%