A wrapper plugin around the Berkelium library to render and interact with web pages inside Unity3D
C++ JavaScript C# C
Switch branches/tags
Nothing to show
Latest commit 46e2f7b Sep 17, 2010
Failed to load latest commit information.
berkelium Updated to new version of Berkelium Sep 1, 2010
screenshots First commit Jul 12, 2010
test-project Focus the window when clicking on it (now a caret is correctly render… Sep 16, 2010
test-release Updated the released test project (will be removed from repository) Sep 3, 2010
.gitignore Added some temporary files and directories to the git ignore list Jul 12, 2010
LICENSE First commit Jul 12, 2010
README First commit Jul 12, 2010
changes.txt Updated changes file Sep 1, 2010
clean.bat First commit Jul 12, 2010


The Unity Berkelium Plugin

This plugin wraps Berkelium (http://berkelium.org) into a thin C layer, and provides a C# script that can be attached to Unity objects.

A couple of notes:

- This is a plugin using native code, so it only works with Unity Pro, and it doesn't work inside a browser.

- If you want to get this working in the Unity (Pro) editor, copy all files from "berkelium/bin" to your Unity editor directory (defaults to "C:\Program Files (x86)\Unity\Editor" in Windows 7). I know this is a dirty hack, but that's the only way I could get it to work. If anyone knows a better way, please let me know!

- There is a test project in "test-project/Assets/BerkeliumUnityTest.unity". It contains a plane with the script attached. You can edit the width and height and the URL.

- The URL has to start with a protocol (http:// for example). I don't know why it doesn't work without it.

- When you want mouse events to work, your object needs a mesh collider (or needs to be a GUI texture).

- There is a log file in "test-project" (when using the Unity editor).

- When you release a project, you must copy all files from "berkelium/bin" to your executable's directory. In the test release, I stripped as many files as possible.

- I am developing this plugin as part of the Flemish (Belgian) OSMA project (http://osma.phl.be/). The research project focuses on open game development.

- I release this code under the same license as Berkelium itself, which is a BSD-style license. See the LICENSE file.

Known issues:
- There seems to be some problem with mouse events
- Keyboard events aren't working yet
- Scrolling isn't supported yet. This is handled seperately in Berkelium (solution almost ready).
- The texture is inverted. You can set the X scale of the Transform to -1 (like in the example), but I am looking for a better solution
- Rendering is very slow. I am still uploading the whole texture each frame (solution almost ready)

Have fun!

Jeroen Dierckx