https://github.com/wiiplayer2/unitycef
A web browser component for Unity
https://github.com/wiiplayer2/unitycef
browser unity unity3d unity3d-plugin
Last synced: 9 months ago
JSON representation
A web browser component for Unity
- Host: GitHub
- URL: https://github.com/wiiplayer2/unitycef
- Owner: WiiPlayer2
- License: lgpl-3.0
- Created: 2018-09-19T00:03:52.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T20:32:09.000Z (over 3 years ago)
- Last Synced: 2023-03-01T21:51:26.519Z (over 3 years ago)
- Topics: browser, unity, unity3d, unity3d-plugin
- Language: C#
- Homepage:
- Size: 937 KB
- Stars: 28
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityCef
A web browser component for Unity
[](https://github.com/WiiPlayer2/UnityCef/releases/latest)
[](https://github.com/WiiPlayer2/UnityCef/releases/latest)
[](https://github.com/WiiPlayer2/UnityCef/commits/master)
[](https://liberapay.com/WiiPlayer2/)
## Usage
1. Download and import the latest release package.
2. Add the `WebBrowser` component to an object.
3. `WebBrowser.Texture` is a `Texture2D` of the rendered web content.
**NOTE:** UnityCef only works with `.NET 4.x Equivalent` as scripting runtime version. If you get a lot of errors about not finding stuff this might be the problem.
## Building
### Requirements
- Python 2.7 (required for building cefglue)
- MSBuild (required for building the companion app and library)
- Unity (required for building the package)
### Steps
1. Clone or download the repository.
2. Optional: Copy `cake/vars.sample.cake` to `cake/vars.cake` and edit values (most importantly `python27_path`).
3. Run `build.ps1 -target unity-package`.
If everything worked correctly you should now have a `UnityCef-X.Y.HASH.unitypackage` file in your directory.
## Donate
Please consider donating a bit to keep this and other projects going. It would mean a lot to me.
## Credits
This project uses
- Chromium Embedded Framework (https://bitbucket.org/chromiumembedded/cef)
- cefglue (https://gitlab.com/xiliumhq/chromiumembedded/cefglue)
- SharpZipLib (https://github.com/icsharpcode/SharpZipLib)