How to clone an ArrayList?

I’m using the PlayerPrefsX.cs class (found here) to set a bool array in the registry of Windows. After the first time saving the game I need to change a specific element in the array.

This isn’t possible with the PlayerPrefsX.cs class so I thought maybe I can clone an ArrayList to the PlayerPrefsX.cs class (PlayerPrefsX.SetBoolArray), but it doesn’t work at all. Does somebody know how to clone an array? Or how to change a specific element in a PlayerPrefsX bool array?

1 Answer

1

All you have to do is load the array, change the element you want, and re-save the array. (By the way, ArrayPrefs2 is better.)