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.

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)
    66.7%
  2. No

    0 vote(s)
    0.0%
  3. Depends

    1 vote(s)
    33.3%
  1. Choccy_vr

    Choccy_vr

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

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    169
    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.