Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 Logical · Oct 11, 2012 at 07:31 PM · playerprefsstringbooleanapplicationpossible

PlayerPrefs from One App to Another.

Been looking around for a suitable way to save some information and then to load it with another application.

Within the saving application this snippet of code is used:

 var saved : boolean;

 if (saved){
    var saving = saved.ToString();
    PlayerPrefs.SetString("Object", saving);
    PlayerPrefs.Save();
 }

Within the loading application this snippet of code is used:

 if (PlayerPrefs.HasKey("Object")){
    Instantiate(gameitem, transform.position, transform.rotation);
 }

So if there is a key named Object which is being saved with the 1st application then it will Instantiate a gameobject into the 2nd application.

The problem is nothing is appearing which means it cannot find the key so am I missing something or is this not possible?

Thank you for any feedback.

Comment
Add comment · Show 3
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 DaveA · Oct 11, 2012 at 07:33 PM 0
Share

$$anonymous$$ac, PC, or web?

avatar image Logical · Oct 11, 2012 at 08:11 PM 0
Share

Android, IOS

avatar image DoctorWhy · Oct 11, 2012 at 08:32 PM 0
Share

You can save a file locally and read from that file in the other application, can you not (since it isn't web)?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Graham-Dunnett · Oct 11, 2012 at 08:42 PM

On iOS each application is completely sandboxed. You have absolutely no access to another application's data. The only way I can think of for app1 to tell app2 to do something is for them to both share access to a web server, and have app1 post some data for app2 to get.

Comment
Add comment · Show 1 · 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 DoctorWhy · Oct 11, 2012 at 08:45 PM 0
Share

Can you save a txt file locally, and open it with some text file reading software (I don't have iOS, so I don't know the specifics), or can one app only have complete access to itself and no access to the rest of the device?

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.

Follow this Question

Answers Answers and Comments

12 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 avatar image avatar image

Related Questions

String comparison, can't use false result as string. 4 Answers

How do I change the logged text based on a momentary collision? 1 Answer

PlayerPrefs for saving strings 1 Answer

Unity C# Application.OpenURL not working with variable input 0 Answers

Loading level using a string created through code. 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges