Saving Data with Unity Part 3!

Objective: Locating saved case files.

In the previous tutorial we turned a photo into a byte array with the ability to reconstruct the image at will. All of this was in the sake of saving our cases as dat files so we can eventually store these files in the cloud but for now they are stored somewhere, but where?

To begin we are going to set up an On Click Event with the submit button on the overview panel. This means when we have filled out all the required fields of information we press submit. The active case is saved as a dat file and in the future, we can load that information back in.

We need to get the data path of the file being saved. To do this we need to head back into the UIManager, where the submit button method is located. In here we can print out a command log with the data.

This will give us the file location and we can now see if there are any saved files there.

There you have it. We have successfully saved our cases as dat files! Don’t be afraid to experiment with your cases and I’ll see you in the next tutorial!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store