Skip to content

Adding an Android WebView on top of the Unity display, while allowing the user to see and use your Unity UI

Notifications You must be signed in to change notification settings

cwgtech/AndroidWebView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidUnityWebView

This extends the base plugin with a OpenWebView method, allowing an Android WebView to be created, loaded, and then displayed and interacted with on top of Unity.

This tutorial creates a LinearLayout, a TextView, and a WebView. The TextView is used to allow for a blank space at the top of the layout, so some portion of the Unity screen is still visible and can be interacted with.

The WebView uses a default WebViewClient that allows links to be opened inside the WebView instead of presenting a picker to the user.

The video for this tutorial can be found at:

https://youtu.be/r1hLo5C50wE

This tutorial was made with Unity 2017.3.0f3, Visual Studio Community for Mac 7.4, and Android Studio 3.0.1

@cwgtech

About

Adding an Android WebView on top of the Unity display, while allowing the user to see and use your Unity UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published