Want to make scrollbars disappear? Although 3D WebView doesn't have a method specifically for hiding scrollbars, you can add a script to IWebView.PageLoadScripts that adds CSS to hide scrollbars, like this:
await webViewPrefab.WaitUntilInitialized();
webViewPrefab.WebView.PageLoadScripts.Add(@"
var styleElement = document.createElement('style');
styleElement.innerText = `
*::-webkit-scrollbar {
display: none;
}
* {
scrollbar-width: none;
-ms-overflow-style: none;
}
`;
document.head.appendChild(styleElement);
");
Please note that 2D WebView for WebGL is unable to inject JavaScript if the webview's URL is from a different domain than the Unity WebGL app. If you're using 2D WebView for WebGL and the embedded web page is one that you control (i.e. it's your website), you can disable scrollbars by editing the embedded web page's CSS directly. If the embedded web page is not one that you control (i.e. it's a third party website), then it's not possible to hide its scrollbars.