Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Erathor · Mar 23, 2017 at 01:16 PM · playerprefslimitlimitationsplayerprefsxarrayprefs

I cannot store data into PlayerPrefs after a certain amount of data

I am currently using ArrayPrefs2 and I am saving about 256 times 256 times 6 Vector3 Values. Just to say there was talk about no limitations in PlayerPrefs but I will propably have to say that there is one after a certain point. I will certainly use another approach to store high amounts of data but I just would like to know what you think about it. Did you run into any limits of data storage?

Comment
Add comment · Show 2
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 Cherno · Mar 23, 2017 at 01:29 PM 0
Share

Yup, it's a somwhat unknown problem but the people who used UnitySerializer will probably know about it and had to implement a solution that made US write to a file ins$$anonymous$$d of PP when the data volume became too large.

avatar image Erathor Cherno · Mar 23, 2017 at 01:42 PM 0
Share

Tnx for the reply That is what I was thinking as well. The thing would be if there would be any loading time while reading one value out of a large file :) Other than my workplace (where the problem is) I am using .dat files to store data but it is not as flexible if I could say so... I tried reading myself into json(to get key values and all) but I am a bit scared of object orientated storage since it was a linear approach till now.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Joe-Censored · Mar 23, 2017 at 07:36 PM

On Windows the PlayerPrefs is stored in the registry. Microsoft recommends any data more than about 2 KB be stored in a separate file outside of the registry. That would suggest it isn't designed to dump 256x256x6 vector3's into.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724881(v=vs.85).aspx

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
1

Answer by Commoble · Mar 23, 2017 at 10:19 PM

If you need to save large amounts of data to the hard disk, you shouldn't be using PlayerPrefs (and arguably you shouldn't use PlayerPrefs to save anything aside from, well, player preferences).

There's a few ways to do this. This official unity live training video goes over using one of them, C#'s Binary Formatter.

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

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

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

How to save an array to PlayerPrefs? 1 Answer

PlayerPrefsX - Is there a way to store values for the same key? 1 Answer

Is there a useful upper limit to the size of ArrayPrefs (PlayerPrefs) data? 1 Answer

Attempting to store an Inventory Array in PlayerPrefsX 1 Answer

How To Add A Limit To Amount Of Objects 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