Options that can be passed to WebViewPrefab.Instantiate() to alter the behavior of the WebView created.


Public properties


bool clickWithoutStealingFocus

If set to true, makes it so that clicking on the webview doesn't automatically focus that webview.


bool disableVideo

Disables video processing for packages that use 3D WebView's fallback video implementation (i.e. iOS and, in some rare cases, Android). For packages that don't use the fallback video implementation (i.e. most packages), this option has no effect.


WebPluginType[] preferredPlugins

3D WebView automatically selects which native plugin to use based on the build platform and which plugins are installed in the project. However, if you have multiple plugins installed for a single platform, this option can be used to specify which plugin to use in order to override the default behavior.

Currently, Android is the only platform that supports multiple 3D WebView plugins: WebPluginType.Android and WebPluginType.AndroidGecko. If both plugins are installed in the same project, WebPluginType.AndroidGecko will be used by default. However, you can override this to force WebPluginType.Android to be used instead by specifying preferredPlugins = new WebPluginType[] { WebPluginType.Android }.