Search Unity

Server side backend application

Discussion in 'General Discussion' started by pKallv, May 26, 2020.

  1. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,191
    What would be the best way of developing a backend service with a webpage and communication with the Unity based app/game?

    What I am looking for is how to kick this off including what tools to use etc?

    The idea is to have a webpage with info like:

    - Unique login
    - Stats per user
    - Download items
    - IAP
    - Upload items
    - ...
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    "Best way" questions are hard to answer, because what is best for your use case can easily not be best for someone else's even with somewhat similar requirements. But a simple to implement solution which limits 3rd party dependencies is just the typical PHP/MySQL approach. Webpage using PHP talks to MySQL database. Unity game talks to another PHP script on the same webserver via UnityWebRequest which talks to the same MySQL database.
     
    DebugLogError and pKallv like this.
  3. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,191
    tx
     
  4. AndyLL

    AndyLL

    Joined:
    Aug 25, 2013
    Posts:
    75
    While I agree with Joe in general....

    After struggling with some old Web Services for days I had a asp.net core Web API to save/load games working in hours. Many of the newer technologies make restful APIs pretty easy.

    But it is still a different animal with a million different options to develop a web backend compared to an Unity game.
     
    Joe-Censored and pKallv like this.