Class BaseUwbClientManager

Base for all other systems that want to build custom rendering with UWB.

Provides controls that can be used with Unity events (such as OnClick).

For other controls and events, use the browserClient.

For those who want to implement this base, DO NOT USE Start(), FixedUpdate or OnDestroy, instead override OnStart(), OnFixedUpdate() and OnDestroyed().

Inheritance
BaseUwbClientManager
Namespace: VoltstroStudios.UnityWebBrowser.Core
Assembly: .dll
Syntax
public abstract class BaseUwbClientManager : MonoBehaviour

Fields

| Edit this page View Source

browserClient

The WebBrowserClient, what handles the communication between the UWB engine and Unity

Declaration
public WebBrowserClient browserClient
Field Value
TypeDescription
WebBrowserClient

Methods

| Edit this page View Source

ExecuteJs(string)

Executes JS

Declaration
public void ExecuteJs(string js)
Parameters
TypeNameDescription
stringjs
Exceptions
TypeCondition
ArgumentNullException
UwbIsNotConnectedException
| Edit this page View Source

GoBack()

Makes the browser go back a page

Declaration
public void GoBack()
Exceptions
TypeCondition
UwbIsNotConnectedException
| Edit this page View Source

GoForward()

Make the browser go forward a page

Declaration
public void GoForward()
Exceptions
TypeCondition
UwbIsNotConnectedException
| Edit this page View Source

LoadHtml(string)

Loads HTML code

Declaration
public void LoadHtml(string html)
Parameters
TypeNameDescription
stringhtml
Exceptions
TypeCondition
ArgumentNullException
UwbIsNotConnectedException
| Edit this page View Source

NavigateUrl(string)

Makes the browser go to a url

Declaration
public void NavigateUrl(string url)
Parameters
TypeNameDescription
stringurl
Exceptions
TypeCondition
ArgumentNullException
UwbIsNotConnectedException
| Edit this page View Source

OnDestroyed()

Override this instead of using OnDestroy()

Declaration
protected virtual void OnDestroyed()
| Edit this page View Source

OnFixedUpdate()

Override this instead of using FixedUpdate()

Declaration
protected virtual void OnFixedUpdate()
| Edit this page View Source

OnStart()

Override this instead of using Start()

Declaration
protected virtual void OnStart()
| Edit this page View Source

Refresh()

Refreshes the browser

Declaration
public void Refresh()
Exceptions
TypeCondition
UwbIsNotConnectedException