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
2
Question by ina · May 28, 2012 at 09:40 AM · androidiosmobileplayerprefs

PlayerPrefs to store a huge binary on mobile iOS Android

Is it possible to use PlayerPrefs to store a large image on mobile? Are there maximums for PlayerPrefs for mobile, and are these max constraints consistent across devices?

Comment
Add comment · Show 5
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 cregox · Aug 20, 2012 at 06:30 PM 0
Share

duplicated: http://answers.unity3d.com/questions/182755/playerprefs-lmitations.html

avatar image ina · Sep 03, 2012 at 03:19 AM 0
Share

Actually, this one has to do with mobile.

avatar image cregox · Sep 03, 2012 at 05:31 PM 0
Share

@ina true. then it's a subset.

avatar image ina · Sep 04, 2012 at 06:04 AM 0
Share

there appears no easy way to organize subheadings in unity answers.. right answer is also based on OP's platform - the other link seems to be non-mobile

avatar image cregox · Sep 04, 2012 at 02:38 PM 0
Share

the other question is about playerprefs limitations, which should state mobile platform limitations as well. now I'm not following where you want to get at...

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by whydoidoit · May 28, 2012 at 09:50 AM

CORRECTION

There is only a limit on the WebPlayer (of 1MB), otherwise you are fine.

You can also store data in a file in the Application.persistentDataPath location on the device....

Comment
Add comment · Show 4 · 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 flamy · May 28, 2012 at 10:09 AM 1
Share

well im saving 200 mb of images as string converted from byte array. It doesnt give any problem on iphone 3g or 4g or 4gs. Even i was looking for the limit and i couldnt find any in unity docs. One known restriction is 1mb in web player, other than that i dont see any restriction. Even there is, 200 mb seems to be pretty big enough to care about, isnt it.

avatar image Bunny83 · May 28, 2012 at 11:41 AM 1
Share

Actually there is no limit for PlayerPrefs except in the webplayer where it's limited to 1$$anonymous$$B. You can use PlayerPrefs, but it depends on the platform. Afaik on iOS Unity also uses a binary file like in a webbuild (but without restrictions). Strings are stored as UTF8 as far as i can tell, so binary data as string would be bigger than storing real binary data, In the worst case 2-3 times bigger

avatar image whydoidoit · May 28, 2012 at 01:20 PM 0
Share

Sorry, had my web head on. :(

avatar image flamy · May 28, 2012 at 02:10 PM 0
Share

@bunny83 ofc it was bigger, but i didnt want to manage it with my own file handling system, so went for playerprefs it slef.

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

6 People are following this question.

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

Related Questions

PlayerPrefs Storage Location on Android or iOS 4 Answers

Is it okay to store many player preferences for mobile? 1 Answer

Is it possible to send SMS from an action in Unity? (Mobile iOS or Android) 1 Answer

getPressure for touch pressure on Android or iOS 3 Answers

Android/iOS notifications when the game is not running 1 Answer


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