Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Php - unity connection

Discussion in 'Scripting' started by Antonief, Nov 29, 2012.

  1. Antonief

    Antonief

    Joined:
    Nov 28, 2012
    Posts:
    2
    hello to everyone.
    I work a job and I want when the user of the game, play with an object A1, A1 object to connect to the database.
    How to display the data of A1 object from the database within UNITY;

    Thanks in advance

    Sorry for my english
     
  2. scarpelius

    scarpelius

    Joined:
    Aug 19, 2007
    Posts:
    966
  3. Armitxes

    Armitxes

    Joined:
    Nov 20, 2012
    Posts:
    16
    I wouldn't recommend the direct DB connection since that would mean that every client has your DB-Login details saved. Go try to work with WWW (recommended) or WWW-Forms and let the PHP script do the DB querys generating an XML File which outputs the query results.