Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Using WebGL with SQL, databases and networking.

Discussion in 'WebGL' started by CSEliot, Mar 5, 2015.

  1. CSEliot

    CSEliot

    Joined:
    May 9, 2014
    Posts:
    30
    I'm part of a team working on a school project that requires a web app. We're using Unity, with either it's web player or webGL. We're currently researching our options and testing things out, and i'll report back here.

    But in the mean time, has anyone had any success with this? SQL, mySQL, SQLlite, various database plugins, etc. Is it possible and what has worked for you?

    Thanks
    Eliot
     
  2. ShabihDesperado

    ShabihDesperado

    Joined:
    Oct 27, 2013
    Posts:
    41
    I have a project where we call php functions sending JSON and it works fine.
     
  3. CSEliot

    CSEliot

    Joined:
    May 9, 2014
    Posts:
    30
    What plugins did you use and was it in javascript or c# any info would be of huge help, thanks!!
     
  4. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    You'd just serialize your data and use WWWForm to send it would probably be the easiest. You could also look at interfacing calls with JavaScript on your web page and using something like Socket.IO to communicate with your server, depending on whether you're using a web socket based platform, like Node.js or just straight REST.
     
    CSEliot likes this.
  5. ShabihDesperado

    ShabihDesperado

    Joined:
    Oct 27, 2013
    Posts:
    41
    Yes, It's what I do, WWWForms.