How to access webpages running in Raspberry Pi through Unity project?

47 Views Asked by At

There's a webpage running on my Raspberry Pi. I want to access it through a button in a Unity Project. When I click on the button in Unity, it should redirect to the webpage running in Raspberry Pi.

1

There are 1 best solutions below

0
Cyclone6664 On BEST ANSWER

You can just use the Application.OpenURL() method, like this:

void ButtonPressed() {
    Application.OpenURL("http://serverip/page.html");
}

This will open a browser window of the url.