79773692

Date: 2025-09-24 12:14:00
Score: 1.5
Natty:
Report link

You can’t directly save a single number with Play Games Services — the Saved Games API works with byte arrays. To store your coin count, just serialize the number to a string or bytes (e.g., "12345" → UTF8 bytes) and write it to the saved game. When loading, read the bytes back, decode them to a string, then parse into an integer.

So the process is:

Convert your coin count → byte[]

Save it with CommitUpdate()

On load, read byte[] → string → int

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: harrie