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

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

    0 vote(s)
    0.0%
  3. Depends

    2 vote(s)
    50.0%
  1. Choccy_vr

    Choccy_vr

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

    Laurie-Unity

    Unity Technologies

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