We have licensed and supported a Unity WebView for the last 5 years and greatly enjoyed the interaction and use cases provided by our clients. Unfortunately, development on uWebKit3 has been discontinued.
If you have licensed uWebKit3 and did not receive a notification, please contact sales@uwebkit.com
If you are using the expiring beta in a project, please contact sales@uwebkit.com to receive a non-expiring build to use until a solution can be found for your project.
If you need access to a previous version of uWebKit or have any other questions, please contact sales@uwebkit.com referencing your product key or receipt id.
We greatly appreciate the support of our clients and please understand that this was a very difficult decision.
Does uWebKit have any way to interact with your own custom made html pages such that Unity can respond similar to how it responds through its native GUI system?
On iOS, Javascript evaluation is available however due to platform limitations we really can’t do callbacks and shared objects. So, this would have to be a polling architecture.
We recently needed to upgrade to Unity 4.2 to fix a couple of issues in our game. Now when building for iOS the auto-generated uWebKit .h files are referencing AppController.h instead of UnityAppController.h. These are easy to fix if you are doing a manual build to Xcode, but this breaks the AutoPilot feature of TestFlight which speeds up building immensely. Is this fixed in uWebKit 1.5?
I’m a little confused about how to display a local html file as opposed to an online page.
I thought something like this would make sense, but it’s giving me errors :
using UnityEngine;
using System.Collections;
using UWK;
public class MyWebGUI : MonoBehaviour {
UWKView View;
// Use this for initialization
void Start () {
//create view
View = UWKView.LoadURL ("MyView","file://pagetest1",1000,200);
}
// Update is called once per frame
void OnGUI () {
/// draw view
View.OnWebGUI(500,700);
}
}
How do I load the page?
Also, my apologies if you’re not answering these types of questions.
I used the code in the link you posted and it’s working now.
Here’s the code for anyone who wants to do anything similar :
using UnityEngine;
using UWK;
/// <summary>
/// Minimal WebGUI using uWebKit and Unity GUI
/// </summary>
public class MyWebGUI : MonoBehaviour
{
// URL
public string URL = "file:// C:/Users/Greg/Desktop/pagetest1";
// position
public int X = 500;
public int Y = 0;
// dimensions
public int Width = 1024;
public int Height = 100;
// transparency
public float Transparency = 100.0f;
// the view itself
public UWKView View;
void Start ()
{
// Create the view
View = UWKCore.CreateView ("MyView", URL, Width, Height);
}
void OnGUI ()
{
// Draw the view
View.OnWebGUI(X, Y, Width, Height, Transparency);
}
}
Worth mentioning that with this code, altering the parameters via the inspector seems to be the best way of using it.
I have one last remaining question however. Is there a way just loading an html file from the assets folder? I could use something like C:\Users\Greg\Documents\ATD\Assets\pagetest1.html, but it would’nt work for someone playing the game on another computer (their directories would be different).
Hi
I need to display my html documents in unity app. Is it possible using this tool ?
I want to store documents in some kind data base and render them using hmm NGUI or something similar .
I’m trying to make a test build to an iOS device, but having the following error in XCode:
I’m using the trial version of uWebKit (tried both the latest and the current beta) with Unity pro 3.5.7. on a Mac with XCode 4.6. Any idea what might cause this issue? It could easily be on my side since I’m not too familiar with Mac builds.