SBrowserSurface

Index

Functions Index

Function Name

void SetURL (string url)

void Back ()

void Forward ()

void Reload ()

void RegisterFunction (string name, Closure function)

void CallFunction (string name, string argument)

void OnURLChanged (Closure e)

Properties Index

Property Name

bool Networked get set

bool Muted get set

bool CanGoBack get

bool EnableInput get set

float Zoom get set

Functions

SetURL

void SetURL (string url)

Sets the URL for the browser frame, and navigates to it.

Parameter
Type
Description

url

string

A standard URL recognized by Chromium, such as https://www.youtube.com.

Back

void Back ()

Equivalent to hitting the 'back' button within the browser.

Forward

void Forward ()

Equivalent to hitting the 'forward' button within the browser.

Reload

void Reload ()

Refreshes and reloads the current webpage.

RegisterFunction

void RegisterFunction (string name, Closure function)

Allows a JavaScript function that exists in the browser to be called by our code.

Parameter
Type
Description

name

string

The name of the JavaScript function we want to register. The function name should start with "sinespace__".

CallFunction

void CallFunction (string name, string argument)

Calls a JS function in the browser with a single argument. The function name must begin with the characters "sinespace_".

Parameter
Type
Description

OnURLChanged

void OnURLChanged (Closure e)

Binds a function to be called whenever the URL of the Browser Surface changes

Parameter
Type
Description

Properties

Networked

bool Networked get set

Should changes to this browser be streamed to other clients within the area?.

Muted

bool Muted get set

Whether this Browser Surface is muted or not.

CanGoBack

bool CanGoBack get

Returns whether this Browser Surface can navigate back

CanGoForward

bool CanGoForward get

Returns whether this Browser Surface can navigate forward

EnableInput

bool EnableInput get set

Whether this Browser Surface has Input enabled or not (interactable)

Zoom

float Zoom get set

Set the Zoom of the browser surface (Pixel Scaling). Positive values zoom in, negative values zoom out.

GameObject

SGameObject GameObject get

Returns a reference to the GameObject of this component.

Last updated

Was this helpful?