Hi, is there a way to display d3charts(https://github.com/mbostock/d3/wiki/Gallery) in Unity?? I’m working on a project that requires me to display such chart with data into Unity. Thanks alot.
1 Answer
1d3 requires the W3C DOM API, i.e. some kind of web interface, so you need a third-party plugin or script to achieve this. Some examples:
UnityWebCore allows you to embed HTML pages as textures, but it’s only for Windows:
http://forum.unity3d.com/threads/83071-Unity3d-plugin-for-embedding-webpages-on-WINDOWS-is-ready!
uWebKit enables dynamic web content in your project. While not free, it looks quite professional:
http://uwebkit.com/uwebkit/
Another user-created plugin, htmlTexture allows you to show HTML content as a texture:
http://forum.unity3d.com/threads/4990-htmlTexture-plugin
A tutorial using Awesomium:
http://labs.awesomium.com/unity3d-integration-tutorial-part-1/
Hi thanks for your knowledge! but currently im trying the uWebkit,any idea if it display my own html pages instead of those online one like google.com & etc.
– darynlimI haven't looked into how uWebkit works, but if you're building for Unity Web Player, you could probably locally host the web files together with the compiled Unity package. Or you could simply host the d3 site remotely, on the Internet.
– mattssonon