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. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

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

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

  1. BGN_minemike

    BGN_minemike

    Joined:
    Oct 8, 2019
    Posts:
    11
    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. BGN_minemike

    BGN_minemike

    Joined:
    Oct 8, 2019
    Posts:
    11
unityunity