Skip to content

Commit

Permalink
updated SampleWebView.cs to call ClearMasks/AddMask.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Oct 13, 2023
1 parent 0cc1f90 commit 0a1882c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sample/Assets/Scripts/SampleWebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ IEnumerator Start()
webViewObject.SetTextZoom(100); // android only. cf. https://stackoverflow.com/questions/21647641/android-webview-set-font-size-system-default/47017410#47017410
webViewObject.SetVisibility(true);

webViewObject.ClearMasks();
webViewObject.AddMask(0, 0, Screen.width, 100);

#if !UNITY_WEBPLAYER && !UNITY_WEBGL
if (Url.StartsWith("http")) {
webViewObject.LoadURL(Url.Replace(" ", "%20"));
Expand Down

0 comments on commit 0a1882c

Please sign in to comment.