Skip to content

Stats

The Stats subsystem provides access to Steam user statistics, allowing the game to read, modify, synchronize, and reset player stat values.

This subsystem is designed for tracking numerical progression, counters, and performance metrics that are stored and managed by Steam.


Capabilities

  • Read integer and float Steam stat values.
  • Modify stat values locally.
  • Increment integer and float stats by custom deltas.
  • Upload modified stats to the Steam backend.
  • Reset all stats for the local user.
  • Optionally reset achievements together with stats.

Important Notes

  • Stat changes are applied locally and are not persisted until explicitly synchronized with Steam.
  • Calling StoreStats is required to upload modified values to the Steam backend.
  • Resetting stats and achievements is typically intended for development and testing workflows.
  • Stat definitions and types must be configured correctly in Steamworks.