Using Easy Save with iCloud Plugins

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
User avatar
Joel
Moodkie Staff
Posts: 4990
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.
Locked