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

Get data from database with post request and store it server side

Discussion in 'Netcode for GameObjects' started by SadisticLotus, Sep 14, 2022.

  1. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    25
    Im trying to store player data server sided and not on the client.
    When i try to request data for example via and RPC it says i cant use async method.

    What is the best way to get the data from a post request if I cant use an async function to make sure it awaits for the data.

    Example of current code for login

    View attachment 1118261
     
  2. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    25