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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Economy Requiring Internet

Discussion in 'Economy' started by Choccy_vr, Sep 5, 2022.


Does the Economy need internet at all times on the user end?

  1. Yes

    2 vote(s)
  2. No

    0 vote(s)
  3. Depends

    2 vote(s)
  1. Choccy_vr


    Oct 31, 2021
    Does the Economy need internet at all times on the user end?
  2. Laurie-Unity


    Unity Technologies

    Mar 5, 2020
    Economy is a Cloud Based service, so the player will need to be connected to download configuration data or update player inventory or currency data.

    If you are intending to allow players to play offline, or manage drops in connectivity gracefully, you will want to implement your own caching of configuration and player currency, inventory state, then update Economy the next time the player has connectivity.

    Related to this, depending on the type of game you are creating, there are some scenarios where caching the player inventory locally and making periodic updates might be a useful way of reducing the number of network requests. For example, a player running around a field harvesting crops, making a network call each time they pickup a carrot, would generate a lot of Economy network calls. But, the number of calls could be reduced by caching the inventory, using instance data for stacking and periodically updating the Economy state. We are investigating if we can add batch commands to allow you to combine multiple economy operations in a singe command for these types of use cases.

    I hope that helps.
    KindredKara likes this.