Search Unity

PlayerPrefs Documentation

Discussion in 'Documentation' started by richardhaddadau, Apr 9, 2017.

  1. richardhaddadau

    richardhaddadau

    Joined:
    Dec 26, 2016
    Posts:
    1
    Under the PlayerPrefs Docs, https://docs.unity3d.com/ScriptReference/PlayerPrefs.html, it says that Windows saves the PlayerPrefs in the registry.

    The registry address is different when trying the game via Unity.

    The one given is:
    This is correct after the game is installed.

    The address while the game is being run through Unity is:
    The Unity\UnityEditor sub-levels are added.

    Just thought I'd point that out for anyone interested =P
     
  2. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Am 99.9% sure that the:

    HKCU\Software\Unity\UnityEditor\[company name]\[product name]

    is used if it exists, otherwise:

    HKCU\Software\[company name]\[product name]

    is created or used. The first of these can exist if the creation of the game started some time ago. I'll get one of the Docs team (with a PC, lol) to give some response.
     
  3. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Actually, I am no longer sure this is 99.9%... I worked on a problem like this but was Mac-related.