Skip to content

Commit

Permalink
updated binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Oct 16, 2020
1 parent 6135f8b commit 3fc1b8d
Show file tree
Hide file tree
Showing 31 changed files with 32 additions and 36 deletions.
2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/package/Assets/Plugins/Android/WebViewPlugin.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/Android/WebViewPlugin.jar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/WebView.bundle/Contents.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions dist/package/Assets/Plugins/WebViewObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class WebViewObject : MonoBehaviour
IntPtr webView;
Rect rect;
Texture2D texture;
byte[] textureDataBuffer;
string inputString = "";
// string keyChars0 = "";
// ushort keyCode0 = 0;
Expand Down Expand Up @@ -213,11 +214,7 @@ private static extern void _CWebViewPlugin_Reload(
[DllImport("WebView")]
private static extern int _CWebViewPlugin_BitmapHeight(IntPtr instance);
[DllImport("WebView")]
private static extern void _CWebViewPlugin_SetTextureId(IntPtr instance, IntPtr textureId);
[DllImport("WebView")]
private static extern void _CWebViewPlugin_SetCurrentInstance(IntPtr instance);
[DllImport("WebView")]
private static extern IntPtr GetRenderEventFunc();
private static extern void _CWebViewPlugin_Render(IntPtr instance, IntPtr textureBuffer);
[DllImport("WebView")]
private static extern void _CWebViewPlugin_AddCustomHeader(IntPtr instance, string headerKey, string headerValue);
[DllImport("WebView")]
Expand Down Expand Up @@ -1023,15 +1020,14 @@ void Update()
texture = new Texture2D(w, h, TextureFormat.RGBA32, false, true);
texture.filterMode = FilterMode.Bilinear;
texture.wrapMode = TextureWrapMode.Clamp;
textureDataBuffer = new byte[w * h * 4];
}
}
_CWebViewPlugin_SetTextureId(webView, texture.GetNativeTexturePtr());
_CWebViewPlugin_SetCurrentInstance(webView);
#if UNITY_4_6 || UNITY_5_0 || UNITY_5_1
GL.IssuePluginEvent(-1);
#else
GL.IssuePluginEvent(GetRenderEventFunc(), -1);
#endif
var gch = GCHandle.Alloc(textureDataBuffer, GCHandleType.Pinned);
_CWebViewPlugin_Render(webView, gch.AddrOfPinnedObject());
gch.Free();
texture.LoadRawTextureData(textureDataBuffer);
texture.Apply();
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/WebViewObject.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/iOS.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/Plugins/iOS/WebView.mm.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/WebGLTemplates/unity-webview.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/package/Assets/WebPlayerTemplates/unity-webview.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/unity-webview-nofragment.unitypackage
Binary file not shown.
Binary file modified dist/unity-webview-nofragment.zip
Binary file not shown.
Binary file modified dist/unity-webview.unitypackage
Binary file not shown.
Binary file modified dist/unity-webview.zip
Binary file not shown.

0 comments on commit 3fc1b8d

Please sign in to comment.