Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Best practice for initializing currencies on Economy service

Discussion in 'Unity Gaming Services General Discussion' started by antoniorobertoarcaju, May 3, 2024.

  1. antoniorobertoarcaju

    antoniorobertoarcaju

    Joined:
    Nov 15, 2023
    Posts:
    16
    I created a new currency on the UGS's Economy service, whose Initial Balance is set to 100.
    I expected that as soon as a new player is created, the player's currency value is set to 100 in the Economy service database, so I can show it to the players on their respectivelly wallet view (in the game).

    But it seems, when I try to get the player's currencies from Economy service, there's no currency set.

    For now, when a new player is created, I'm increase the currency amount by 0, so the currency is added in the Economy service database with the right Initial Balance.

    What is the best practice for initializing currencies on Economy service?
    Is there a way to automatically insert the currency with its initial balance, into Economy database, when a player is created ?
     
    ByteflowX likes this.