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!
↧