Using Easy Save with iCloud Plugins

Post Reply
User avatar
Joel
Moodkie Staff
Posts: 3054
Joined: Wed Nov 07, 2012 10:32 pm

Using Easy Save with iCloud Plugins

Post by Joel »

Using Easy Save with iCloud Plugins

Although Easy Save does not have its own iCloud functionality, it is very simple to integrate Easy Save with existing iCloud plugins, using ES2.SaveRaw and ES2.LoadRaw.

Integrating with 'iCloud for Unity' by Jemast

To upload a file we've created with Easy Save 2 (in this example, "myFile.txt") to iCloud using the Jemast plugin, you may do the following:
// Load from iCloud
ES2.SaveRaw( JCloudDocument.FileReadAllBytes("myFile.txt"), "myFile.txt");
// Save to iCloud
JCloudDocument.FileWriteAllBytes("myFile.txt", ES2.LoadRaw("myFile.txt"));
Integrating with 'iCloud Plugin' by Prime31

To upload a file we've created with Easy Save 2 (in this example, "myFile.txt") to iCloud using the Prime31 plugin, you may do the following:
// Load from iCloud
ES2.SaveRaw( P31CloudFile.readAllBytes("myFile.txt"), "myFile.txt");
// Save to iCloud
P31CloudFile.writeAllBytes("myFile.txt", ES2.LoadRaw("myFile.txt"));
Discalimer: Because we have no control over the content of these plugins, this example is provided without warranty.

Post Reply