Using Easy Save with iCloud Plugins

Using Easy Save with iCloud Plugins

Postby Joel » Wed Jan 23, 2013 6:24 pm

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.
User avatar
Joel
Moodkie Staff
 
Posts: 1673
Joined: Wed Nov 07, 2012 10:32 pm

Return to Examples and Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron