How can I hide scrollbars?

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);
");