Hello,
I've been banging my head around this for a couple days now. Any help would be much appreciated!
I currently use a binary formatter in Unity to serialize my player's game data class to a file and store it in Unity's persistent data path. I have followed and implemented the code in the Entity Files documentation.
I tried passing just the file name to the UploadFile function, but it just saves a blank file.
I tried passing the file path string to the UploadFile function, but it errors because of invalid characters in the path name. This doesn't make sense to me. The only thing I could think of is that the path has some spaces in some of the folder names, or it has something to do with the file type.
I tried creating a different serialization method using json and passing that file name to UploadFile, but I get a file doesn't exist type error.
I also looked into Entity Objects, but the documentation clearly states that all new titles should use Entity Files for more flexibility. My current json file is around 400 bytes, but I anticipate it growing a bit larger over time so I want to plan for that.
Is there another procedure that I am missing or doing incorrectly to get this to work?
Thanks!