class : MonoBehaviour

Script that can be attached to a GameObject with a mesh renderer in order to render the contents of the WebView onto the mesh. Note that WebViewPrefab takes care of handling this for you, so you only need to deal with ViewportMaterialView directly if you create IWebView instances outside of a prefab using WebViewFactory.GetInstance().


Public properties

Public methods

Public properties


Texture2D Texture

The texture for the view, which is a special texture created by ITextureCreator. If the webview raises its TextureChanged event, this property can be set to the new texture.

Public methods


void Init()

Initializes the view.