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 sgmongo · Aug 21, 2013 at 08:05 PM · playerprefssaving

PlayerPrefs defaults for install

Pre-Warning: Yes I've done a google-search. Yes I've looked through Unity Answers. Please don't patronize me unless you want to be reported. ^.^

Basically what the title suggests: I'd like to have a default player prefs upon the game starting. While I realize that I could, by hand, enter in all the data with a onetime script I'd like to know if there is a more elegent solution.

I've been creating GUI elements that can save their location and data in playerprefs so that I can on-the-fly change the variables during Unity's Play, they will save their current data, and load it when next the game is "Played"

For example: the rect data on a texture is compressed into a string array and saved to gameObject.name + "_" + SpecificID; if I press S while the editmode is enabled.

Next it loads that data and automatically places the texture, based on my ealier actions.

All this is working quite well, but since PlayerPrefs is the only (to my knowledge) available data saving option inherant to unity, I'd like to investigate my options before building a whole program based on a system that won't really work as soon as I try to export it.

Could I somehow save the playerpref data to be loaded when i export the whole thing to windows, so that all the data is intact?

Or is there an option I've missed in my exploration to keep the variables you input during play when you exit the program simulation?

Basically I'm sick of writing down all my rect data after i get all my menus and buttons in place and am looking for a intelligent solution.

Thanks!

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

1 Reply

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

Answer by getyour411 · Aug 21, 2013 at 08:16 PM

Look at the (free) Unity Serializer by whydoidoit

http://whydoidoit.com/unityserializer/

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 sgmongo · Aug 21, 2013 at 11:13 PM 0
Share

Just tried to add this to my unity... crashed the first time. Re-installed and tried again, this time it simply won't pull up plugin menus or work at all. I'd love to find a serialization program that came with a tutorial that didn't make me wonder if I had lost my mental faculties... I guess its time to start the search.

avatar image getyour411 · Aug 21, 2013 at 11:34 PM 1
Share

This Serializer gem is used by hundreds, maybe thousands of Unity folks so I'd bet the issue is unique to your setup. Create a new project and import the Serializer - if there are still issues ask for help on anything specific that's reported.

avatar image sgmongo · Aug 22, 2013 at 01:06 AM 0
Share

Well I have a standard install, I tried playing with things but as soon as I clicked on the wizard it started spitting the same error code and I had to shutdown unity.

However I did find a "Serializer gem" of a different origin. Its a basic X$$anonymous$$L tutorial. I plugged the code in and had a working understanding of X$$anonymous$$L inside of an hour. This little tutorial included a working code example, as well as enough information to get me off the ground. It doesn't include all the functions a person could need but its a darn sight easier to understand than anything else I've run across.

Since you were patient, and I've seen enough links pointing to that plugin I'll mark this as correct. I can't endorse it personally, but I'm sure it'll help folks. Have a awesome day.

avatar image getyour411 · Aug 22, 2013 at 01:10 AM 1
Share

good deal, you too

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

16 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

Related Questions

Saving with PlayerPrefs? How it works? 1 Answer

Saving and loading game with PlayerPrefs 1 Answer

Having issues with PlayerPrefs... 2 Answers

Save Datasets at runtime 2 Answers

Using playerprefs to remember a level completion 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