• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Subliminalman · Feb 25, 2013 at 09:06 AM · androidiossavedatacopy

How do you copy PersistentDataFolder between devices?

Hi all! I'm working with character save data that I want to use on our Android and iPhone build of the game to see if everything loads correctly. This data needs to be read/write hence the location.

So how would I copy the data from my computers build to the Android and iPhone build? Also is there a way to automate this process either through unity or with bash or applescript?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Subliminalman · Mar 03, 2013 at 06:21 AM

So I found a nifty tool called iFunbox which is a iPhone File Manager which is exactly what I needed so I could just drag and drop files when I need into the persistentDataFolder. It's free so hey here's a link.

http://www.i-funbox.com/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by Graham-Dunnett · Feb 25, 2013 at 10:29 AM

On an iOS device I'd look at UIFileSharingEnabled which allows you to drag and drop assets onto the device using iTunes. You can then have a build of your game that knows where to get this data from. (Note that this is different from using persistent data, it's just a trivial way to test your loading.) UIFileSharingEnabled is a flag you set in the app's plist.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Subliminalman · Feb 25, 2013 at 10:36 AM 0
Share

Cool, I'll check this out! It'll help with testing at least.

So I'm going to assume the only way to have save data preloaded on each device for a build is to either have it already in the resources folder or have it stored somewhere and get it with the WWW class.

This may be beyond the scope of the initial question but is there a way Unity can do a post script to make a directory on the iOS device so I may use the WWW class?

avatar image Graham-Dunnett ♦♦ · Feb 25, 2013 at 10:47 AM 2
Share

Something like the code on this page: http://docs.unity3d.com/Documentation/$$anonymous$$anual/iphone-Downloadable-Content.html

avatar image Subliminalman · Feb 25, 2013 at 10:53 AM 1
Share

Thank you! This has led me in the right direction especially since we're doing Downloadable content.

You deserve a high five Highfive

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

android / iOS : sharing save file between Free and Paid version 1 Answer

External Saves for android games 1 Answer

Save data without playerprefs [android] 1 Answer

The best way to save and load data for mobile in unity ? 1 Answer

Android/IOS: Sharing save file between free and paid versions 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges