BACKGROUND
I am working on a game for Android that has been published on the Google Play Store.
And now I plan to add the cloud save feature as an update.
(FYI: I use Unity and Play Games plugin )
PROBLEM
After hours of research and experimentation, I am currently focused on how to save the game automatically.
My game is a collection of mini-games in which a player can continue to play until his life ends.
I want the save to happen automatically while the player is playing.
According to the plugin, this is how I save the cloud:
public void SaveGame (ISavedGameMetadata game, byte[] savedData) { savedGameClient.CommitUpdate(game, updatedMetadata, savedData, OnSavedGameWritten); }
I need 2 parameters for the SaveGame function, the first is metadata, then the second is the data itself.
Anywhere I search (even on Google), I cannot find a way to generate metadata automatically.
Based on my research, I can get metadata from the function below:
void ShowSelectUI() { uint maxNumToDisplay = 5; bool allowCreateNew = true; bool allowDelete = true;
Thus, the user will need to open a dialog, and then create a new save on their own.
This cannot happen in my game, as I need to save every time a player loses.
LINK
I know that it should be possible, a game called Get Bigger! A maul can save progress every time the player loses without opening a save dialog.
Question
Can someone give me any information about this?
I spent all day without an answer ...
Any help would be greatly appreciated.