Search Unity

Spawn object based on database

Discussion in 'Multiplayer' started by noynac01, Mar 9, 2017.

  1. noynac01

    noynac01

    Joined:
    Nov 8, 2014
    Posts:
    3
    Is it possible to spawn a prefab onto the player if the value of an object has the same name as the value in the database?

    For example
    (I am using a login system asset)
    On my users table, my username is noynac I have a column called gun, and the value is M16

    So when I login, it finds the column called gun where the username is noynac, it then sees that the column value is M16,and it enables the prefab called M16 on my character

    Or maybe if there's an asset I can buy to do this? I got like $100