Is is possible to check how much space that player prefs has used up?
Because prefs are a string value, is it safe to say that a single character’s memory is the same size as any other character’s memory on any given machine? (ie) If i took my Player Prefs for a project and wrote them all down on a text doc. Then look to see how much memory the text file was taking up. Would that be accurate or close?
I want to see how close or far i am from a player Prefs exception.
well, you can dig out the actual plist file and weigh it, if you’re on a mac - a bit harder on Windows, I guess, to dig out the registry entry… their locations are stated in the script reference.
It would be handy to know how much player prefs headroom is available at runtime, though… I’m not sure if that’s possible.
given that only webplayers have a limit (1mb), its not possible cause the rest just has no limits technically
So i tried weighing a text file and it can’t be close cause 1mb allowed me to have a lot of characters.(a lot)
there is a max string len size, registry keys can not be infinitely long.
Also playprefs is just not meant for that. use System.IO and store files locally if you want to store massive blobs, playprefs as its name implies is focused on prefs, not databases and alike