Documentation

​
​

Development

User Acquisition

Monetization

Industry

Economy

Unity SDK

Economy

LiveOps
​
​
Economy
  • Overview
  • Get started
  • Concepts
  • Tutorials
  • Reference
    • Economy SDK guide
      • Installation
      • Configuration
      • Common objects
      • Player balances
      • Player inventory
      • Purchases
      • Editor tools
      • Exceptions
      • Quick reference
      • Game Overrides
    • Parameters of operation
  • Privacy and consent
  1. Economy
  2. Economy SDK guide

Common objects

Understand the common objects used throughout the Economy SDK.
Read time 1 minute
Last updated 8 months ago

Economy date

An
EconomyDate
object is a wrapper for modified and created dates from the economy service. It currently has one parameter as shown below:
  • Date
    : A
    DateTime
    representation of the wrapped date.

Write lock

The write lock is used to implement optimistic concurrency. It is optional.
A
writeLock
is returned for each balance or inventory item instance when they are fetched, added or updated. The user can then pass the
writeLock
value back to the SDK when updating a currency balance or inventory instance. If it matches, the request is successful and will update. If it doesn't, then an error is returned.
The
writeLock
can be any
string
value.
For a code example, see the method
UpdatePlayersInventoryItemUsingWriteLock
in the
InventoriesBasicExample
sample.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Economy date

    • Write lock


Report a problem with this page