Search Unity

Simple webpage with button to call a function in a Unity game?

Discussion in 'Scripting' started by CloudyVR, Jan 30, 2020.

  1. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    715
    I am trying to create an external control panel that lives in a web browser to control parts of my game from a remote location.

    I was hoping I could find a REST server for Unity, but none seem to exist (yet). So I was wondering if
    someone here could help suggest a simple way to create a button in a HTML document that when pressed from a web browser would somehow call a function in my Unity.exe game build?

    I am not very familiar with sockets, and am very unfamiliar with how a person would go about opening one from inside a webpage.

    But I would like to somehow send and receive data to and from my Unity game and webpage (AJAX maybe..??), it would not be much data, and speed is not critical..

    Any suggestions or libraries that already exist for similar purposes?

    Thank you!
     
  2. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    715