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().
Namespace: VoltstroStudios.UnityWebBrowser.Core
Assembly: .dll
Syntax
public abstract class BaseUwbClientManager : MonoBehaviour
Fields
| Edit this page View SourcebrowserClient
The WebBrowserClient, what handles the communication between the UWB engine and Unity
Declaration
public WebBrowserClient browserClient
Field Value
Type | Description |
---|---|
WebBrowserClient |
Methods
| Edit this page View SourceExecuteJs(string)
Executes JS
Declaration
public void ExecuteJs(string js)
Parameters
Type | Name | Description |
---|---|---|
string | js |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | |
UwbIsNotConnectedException |
GoBack()
Makes the browser go back a page
Declaration
public void GoBack()
Exceptions
Type | Condition |
---|---|
UwbIsNotConnectedException |
GoForward()
Make the browser go forward a page
Declaration
public void GoForward()
Exceptions
Type | Condition |
---|---|
UwbIsNotConnectedException |
LoadHtml(string)
Loads HTML code
Declaration
public void LoadHtml(string html)
Parameters
Type | Name | Description |
---|---|---|
string | html |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | |
UwbIsNotConnectedException |
NavigateUrl(string)
Makes the browser go to a url
Declaration
public void NavigateUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | |
UwbIsNotConnectedException |
OnDestroyed()
Override this instead of using OnDestroy()
Declaration
protected virtual void OnDestroyed()
OnFixedUpdate()
Override this instead of using FixedUpdate()
Declaration
protected virtual void OnFixedUpdate()
OnStart()
Override this instead of using Start()
Declaration
protected virtual void OnStart()
Refresh()
Refreshes the browser
Declaration
public void Refresh()
Exceptions
Type | Condition |
---|---|
UwbIsNotConnectedException |