- Home /
PlayerPrefsX - Is there a way to store values for the same key?
Hello.
Like i said in the title... I need to have more then one key with the same name, for example:
First Key: A
Value: 1,2,3,4
Second Key: A
Value: 6,3,1,8
Third Key: A
Value: 12,42,5,1
The values are going to be stored into an int array.
Answer by Landern · Aug 09, 2016 at 07:02 PM
If you're talking about PlayerPrefsX from UnifyCommunity then no. The values are constructed in a Hashtable which requires that there aren't any duplicate keys. The keys are hashed/calculated for fast look up. So no and if you try you will end up getting a Duplicate Key exception or something similar.
Your answer
Follow this Question
Related Questions
I cannot store data into PlayerPrefs after a certain amount of data 2 Answers
How to save an array to PlayerPrefs? 1 Answer
ArrayPrefs 1 Answer
PlayerPrefsX delete all values? 1 Answer
Guide in ArrayPrefs or PlayerPrefx? 1 Answer