Coder Social home page Coder Social logo

unityawe's Introduction

Web-Browsing in Unity3D

UnityAwe is a Unity3D wrapper for Awesomium. It allows you to render and interact with web-pages within any Unity3D scene.

Dependencies

This version depends on Awesomium 1.6.2 and Unity 3.4.

How Do I Use This?

  1. Copy the "release" files from the Awesomium SDK to your Unity Editor's path. (on Windows: Awesomium.dll, AwesomiumProcess.exe, icudt42.dll, locales folder -- on Mac OSX: Awesomium.framework)

  2. Add WebTexture.cs, WebCoreHelper.cs, and AwesomiumMono.dll to your assets folder.

  3. Drag the "WebTexture" script onto any game object or GUI texture to make it display a web-page.

We've also provided an example script (Example_CustomHTML.cs) that demonstrates how to load custom HTML, bind properties/callbacks to Javascript, and more. Just add it to your asset folder and drag it to a GameObject or GUITexture to make it display.

Common Unity3D Editor folder paths:

Windows = C:\Program Files(x86)\Unity\Editor

Mac = /Applications/Unity/Unity.app/Contents/Frameworks

When copying to the Mac application, you may need to right-click the Unity app, and select Show Package Contents.

Displaying with GUITexture

Make sure your GUITexture pixel inset size matches the size specified in the WebTexture script, otherwise mouse input won't work correctly.

Deploying Your Application

Make sure to copy over the Awesomium SDK files to your respective application.

On Mac, you will need to copy Awesomium.framework to your application bundle's Frameworks folder (right-click, show package contents).

Known Issues

Awesomium doesn't like to be initialized more than once per-process, so some web-pages will not display twice in a row inside the Editor (eg, pushing play, stop, play, stop).

AwesomiumMono

We've provided a copy of AwesomiumMono.dll for Windows and Mac OSX inside the bin folder.

To build AwesomiumMono, please check out khrona/AwesomiumSharp on GitHub.

Licensing

Awesomium is free for evaluation, non-commercial use, and independent use (by companies who made less than $100K in revenue last year).

If you're a larger company and would like to use Awesomium for commercial use, you can purchase a Pro License at http://awesomium.com/buy/

unityawe's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.