UnityWebCore plugin aims to embed webpages(html including flash videos or other flash applications) into Unity3d as texture on WINDOWS.
Following features are supported:
Mouse interaction fully supported, moving, scrolling and middle button utility just as common web browsers.
Mouse cursor changing via the content of webpage in hardware mode.
Keyboard input fully supported including receiving IME inputs.
Status callback during loading and showing webpage.
HTTP, HTTPS and local html following HTML4 standard are fully supported.
Higher performance via partly update each frame and multi-thread rendering.
Embedding flash into the webpage is fully supported.
Transparent background is fully supported.
Zoom In/Out the webpage view is supported.
Going forward, backward and refreshing the webpage are supported.
Executing javascript code or functions in html from Unity3d.
And javascript in html can also call Unity3d callback functions.
// execute html javascript code from Unity3d C# code
public static extern void ExecuteJS(int webViewId, string javascript);
// call javascript function in html from Unity3d C# code
public static void CallJS(int webViewId, string funcName, params object[] arguments);
// add Unity3d C# function callback, it can be called from javascript in html.
public static extern void AddJSCallback(int webViewId, string funcName, JSCallbackDelFunc func);
Limitations: The UnityWebCore plugin can only be used in Unity Windows Standalone applications.
PS: Please read the readme file first before using this plugin.
Awesome job! A lot of people will be very thankful for this. You should put up a donate button somewhere, or add a menu item that links to a donate page, I’m sure some people would like to thank you for this with some cash.
Nice package, thank you for sharing! I just noticed a visual bug. When you run a movie on youtube and scroll only the flash video will scroll (tested in editor). As soon as the video left the visible area scrolling works again…
xad
Edit:
It also seems that the custom hardware cursor is not resetted properly when stopping the simulation.
very nice work indeed.
i tested a live video stream from the net through flash app and it also works, only the sound from the stream keeps coming in after i’ve stopped the scene. Maybe some thread that keeps running.
You can add some code in UnityWebView class to clean up the webivew after stop the Unity Game.
void OnApplicationQuit()
{
UnityWebCore.DestroyView(m_TextureID);
}
Also you can download the lastest package for the update.
Thanks for the complain:)
Actually this plugin embeds one web browser into Unity. So all the flash application which can run in common web browsers shall also work via this plugin.
So just go ahead to test your mic, webcam and other application…