OpenURL

Method

Open a URL in the user's default browser. On web, this will open the URL in a new tab. On mobile, this will open the URL in the default browser app. In VR, this will open the URL in the default browser app (popover on Oculus Quest)

Definition

void OpenURL(string url)
void OpenURL(string url)

Parameters

ParameterDescription
string url

Examples

void OnInteract()
{
SpatialBridge.spaceService.OpenURL("https://spatial.io");
}
void OnInteract()
{
SpatialBridge.spaceService.OpenURL("https://spatial.io");
}