Search Unity

PlayerPrefs initial values from editor to iOS build

Discussion in 'iOS and tvOS' started by Lab618, Jun 29, 2017.

  1. Lab618

    Lab618

    Joined:
    Jan 12, 2015
    Posts:
    36
    Hello,

    I have set up some initial values in my PlayerPrefs. They work fine in the editor, but don't seem to be present when I build to a device. Are these values included when I do a build or do I need to create them on the device when the app runs for the first time?

    Cheers.
     
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    They are not included in a build. They are stored locally on whichever device/computer is running your app.
     
  3. Lab618

    Lab618

    Joined:
    Jan 12, 2015
    Posts:
    36
    Thanks.

    I knew they were stored locally, was just hoping the initial values would be in the build.