Page 1 of 1

Save file size

Posted: Thu Jun 14, 2018 4:10 pm
by jinxology
I'm finishing up an RPG, and in the course of the game, you acquire quite a few characters and NPCs that I need to save. To cloud save, I convert to an encoded string. I'm noticing that, late game, the string is getting pretty large. I'm wondering if anyone has any advice on how to trim down the size of that save file/save string? Is there data types that should be avoided when keeping the file size small? Or, even better, is there a way to analyze my save file to see the storage breakdown?

Re: Save file size

Posted: Thu Jun 14, 2018 4:19 pm
by Joel
Hi there,

Ideally you should only save data which needs to be saved, so it's worth putting your save data into a JSON Formatter and manually checking that there are no fields which are being unnecessarily saved. If fields are being unnecessarily saved, you should be able to use the Types pane to find the Type, and then deselect the field.

Generally the main data types to avoid are Textures and Meshes (so saving Materials, MeshRenderers and MeshColliders should also be avoided).

All the best,
Joel