[DISCONTINUED] uWebKit - Chromium WebView for Unity 5

@AngryOrange: Yes, uWebKit renders HTML over the wire, from local files, or from generated strings. I would suggest getting the trial version: http://uwebkit.com/download

@Nerg: Unity4 changes up the iOS Obj-C stuff significantly. The 1.4 package supports Unity 3.5, the newer packages support Unity 4. You can get the 1.4 package from the GitHub site: https://github.com/TheEngineCompany/uWebKit

~Josh

Oh great, thank you!

Hi, I’ve tried your trial version of uWebKit and I’m having some troubles when I’ve tried the code that G_Trex have posts.

I’ve tried to launch the webpage and it seems to works.

I’ve noticed then that a UWKView is needed in this example so I’ve created a UWKView and when I try to launch the game it make unity crash. Do you have any ideas about that? Is it because I’m working with a trial version?

I don’t know if everything is clear. Don’t hesitate to ask. By the way your plugin is really interesting and I will maybe purchase this soon if i manage to test what i want to do :slight_smile:

Hello,

Please see this minimal example script for creating a web view in your application.

https://github.com/TheEngineCompany/uWebKit/blob/UWEBKIT-15b/uWebKit/Assets/uWebKitExamples/Scripts/WebGUI/WebGUI.cs

~Josh

Okay thank you Josh, I think I was not clearly awake when I post this, because I didn’t see the

View = UWKCore.CreateView (“BasicWebGUI”, URL, Width, Height);

Okay so my creation of the Web view is okay.

Now I’m facing another problem. It seems that if I choose to have a transparent background in my web page, it still a white bacground on my page in unity. So here is two questions :

  • is there a way to change the depth of my page?
  • is there a way to have a web page with a transparent background to show the 3D unity scene behind :slight_smile:

Thanks again for your help :slight_smile:

Iwa

Hi, we have an issue with playing sound through javascript on WIndows. Is there a way to post a ticket on this?

Can not be displayed in unity3d with. Swf page. in this page,Swf call a computer webcam

Hi,

I’m trying to use uwebkit behind a proxy, and i just can’t succeed.

I’ve set this :

/// <summary>
		/// enable disable proxy support
		/// </summary>
		public static bool ProxyEnabled = true;

		/// <summary>
		/// The proxy hostname.
		/// </summary>
		public static string ProxyHostname = "192.168.1.102";
		/// <summary>
		/// The proxy port.
		/// </summary>
		public static int ProxyPort = 8080;

in the config file but it does not work :s.

We have been unable to log into the Unity forums due to a database error and have a support ticket in to get it resolved. Hopefully, Unity fixes it soon but until then have to post from this account.

@EvilGia: We use GitHub for issue tracking. https://github.com/TheEngineCompany/uWebKit

@killliu2013: It sounds like that camera swf needs to directly access the screen. uWebKit renders to an offscreen buffer for integration with Unity content.

@McKlane: Are there any errors in the player.log?

~Josh

I have no errors in the player log.

I’ve wiresharked the process and it shows me that uwebkit is not using the proxy. ( I’ve filtered the traffic with a filter on the proxy port )

I am using uwebkit pro trial on windows with the latest stable version ( i’ll buy it if i can use the proxy settings ).

I purchased the UWebkit standard version.
I occurred the limitation that is “uWebKit Pro required for WebView resolution greater than 1024”.
I cannot find this limitation before purchasing.
So, I cannot use this plugin for my purpose although I paid…

@McKlane: There is an issue with the proxy support that is being worked on. I’ll post here when the new version is available.

@Yuuki.Mochiduki: There is a full featured evaluation version available (http://uwebkit.com/download) to ensure uWebKit meets requirements. I see that the compare chart is missing the texture size resolution information and it will get updated. Please email sales@uwebkit.com with this issue and we’ll assist you.

~Josh

I have a problem with rendering a WebGUI elements in a Linear Color Space. WebGUI looks so dark.
How can I fix it? Thanks!

Hello crawler,

What happens when you change:

https://github.com/TheEngineCompany/uWebKit/blob/UWEBKIT-15b/uWebKit/Assets/uWebKit/UWKTextureSet.cs#L90

to either:

BackBuffer = new Texture2D ((int)Width, (int)Height, TextureFormat.ARGB32, false. false);

or

BackBuffer = new Texture2D ((int)Width, (int)Height, TextureFormat.ARGB32, false, true);

If smart rectangles are being used the SubBuffer will also need to be changed on line https://github.com/TheEngineCompany/uWebKit/blob/UWEBKIT-15b/uWebKit/Assets/uWebKit/UWKTextureSet.cs#L114

~Josh

I have changed 2 lines, and it works lika a charm! Thank you so much for the great plugin!

BackBuffer = new Texture2D ((int)Width, (int)Height, TextureFormat.ARGB32, false, true);

Hello,

Updated uWebKit 1.5 binary packages are available from the GitHub site: https://github.com/uWebKit/uWebKit

uWebKit 1.5 updates the embedded version of WebKit, features greatly enhanced web proxy server support, support for HTML5 local storage, and a number of performance improvement and fixes.

Please report any issues with the new package here.

Cheers,
~Josh
http://www.uwebkit.com

I just download the and activate my trail version on my mac and all the exaples work, but when I change the build settings to Windows, there is this notification: “uWebKit process missing, have you injected the player?” I clicked on the suggested button uWebKit > Inject Player which opens up a finder window, where of what is this player I need to inject. I’m building this project on my Mac becasue I have a Unity Pro on here, but the compiles files will run on windows…
Any help would be great

Hello,

I have updated the player build script with a fix. Please replace the file with this one from the GitHub repository:

https://github.com/uWebKit/uWebKit/blob/UWEBKIT-15b/uWebKit/Assets/Editor/PostprocessBuildPlayer

Please let us know if this works for you,
~Josh

Hello,
I just download uwebkit, when I visit an url, how can I pass some parameters to my page?Like the Android javascriptinterface did.
Any help would be great!
PS: do you have an uwebkit api or something like that?

Hey Josh
I downloaded the file. I opened up a new project within Unity and reimported the uWebkit files that you had in Git. The Mac version still works great, but as soon as I set the player settings to windows, it asks me to inject a player, same issue as before.
Thanks for taking the time to look into this, we’ve sortof made promises to a client that we’re relying on this for.

Regards
JC