Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

regular website as client

Discussion in 'Connected Games' started by nycucumber, Jul 7, 2019.

  1. nycucumber

    nycucumber

    Joined:
    Feb 16, 2014
    Posts:
    7
    hi! before i spend days learning all about networking and multiplayer, I thought it is wiser to ask if this is the right way to go.

    i have a game that users can play using their smartphones by simply visiting a website, the web app connects to Firebase and Unity fetch data from Firebase's realtime database. But now we are launching a version in China so firebase or any google service is out. I started looking into unity's multiplayer feature and seems like it is use-able in China. But my question is, do the clients have to be developed in Unity as well? or i can be be a web-app developed in html / css and javascript.
     
  2. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    122
    Hi. Your question is not so clear. Do you want to use Unity multiplayer (deprecated and new version is still in alpha I believe) without Unity? I don't think this is possible. I'd suggest to go with an independent networking solution for HTML5/JS development.
     
    Joe-Censored likes this.
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    5,972
    A regular website isn't going to work with Unet, and Unet doesn't have any database functionality anyway. I'd just roll my own MySQL solution.
     
  4. nycucumber

    nycucumber

    Joined:
    Feb 16, 2014
    Posts:
    7
    we are developing a public game, there will be a super big screen in a museum and there will be visitors, visitors willl use their own smartphones to access a website, and use that website/web app to create their own avatars and all avatars will appear in the big screen.

    the main game on the big screen is developed in Unity, we are trying to find a Chinese-Internet friendly way to hook the web-app with the main game.
     
  5. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    122
    I can suggest our own solution, SmartFoxServer. But maybe others can suggest something else.
    In SmartFoxServer you have both C# API (for Unity) and HTML5/JS API, so you can have independent clients to connect to your Unity game through a website.