I know about PlayerPrefs.DeleteAll, however my question is about deleting data from the file system. The documentation here states that “On Windows, PlayerPrefs are stored in the registry under HKCU\Software[company name][product name] key, where company and product names are the names set up in Project Settings.”
That was indeed correct and I could see values stored in the Registry under the specified path, and could manually delete or edit values. However after updating Unity to 5.5.0f3 Personal (64-bit), the PlayerPrefs are no longer stored in the Registry, despite what the docs say. They are stored somewhere, as I can see the values preserved, but that path in the Registry is empty now.
Related to that, why doesn’t PlayerPrefs data get deleted when I uninstall the game on Android? I know that its data is supposed to be saved in SharedPreferences. Here is what I do: on Android device go to Settings, Apps, tap on my game in the list, click “Force stop” (even though the game is not running), click on Storage, then ‘Clear Cache’ and also ‘Delete Data’, confirm deletion. Back to previous screen, click ‘Uninstall’. Now install the game again, and magically all previously saved data is there. Where is it coming from? For comparison, in my other (non-Unity) Android app where I store data via SharedPreferences, and then clear the app’s cache, all data is deleted as it should be.
Is there a known issue with PlayerPrefs on 5.5 / are they now stored somewhere else / what am I doing wrong? Thanks!