Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Is Unity3D trying to tell me something?

Discussion in 'General Discussion' started by TokyoDan, Jun 14, 2014.

  1. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    Is Unity3D trying to tell me something?

    In my PlayerPrefs I'm getting the following key/value strings:

    "LoggedInUser" / "Jackass".

    And I can not find out where the hell that is coming from!
     
  2. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Hahaha, what do you mean exactly? You are reading that pref and you don't like the value? Can't you change the pref to "LoggedUser" instead of "LoggedInUser"?
     
  3. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    No. I'm not setting that anywhere. I'm trying to get rid of it. Here's more info:

    I am on OSX, running Unity 4.3.4. And I keep getting old UserPrefs settings from somewhere.

    My Build Options are set to Standalone, and the PlayerSettings are:

    Company Name: DefaultCompany
    Produce name: TOTu

    So when I run a project this creates: ~/Library/Preferences/unity.DefaultCompany.TOTu.plist

    But there are many old leftover settings in that Prefs file. I can delete it. Create a completely new project with nothing in it but the Main Camera. And when I run that empty project the old UserPrefs with leftover settings are back.

    After I delete my UserPrefs then run the project I can see that Unity creates a temporary UserPrefs file named like unity.DefaultCompany.TOTu.plist.gnKdRbg

    How can I get rind of those old PlayerPrefs?
     
  4. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Have you tried PlayerPrefs.DeleteAll()?
    If that doesn't work then try changing your company name and product name to something else.
     
  5. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    That works and gets rid of the old stuff but if I change it back then I get the old stuff back. So Unity must be keeping a backup hidden somewhere. And I'd like to know where.
     
  6. Waz

    Waz

    Joined:
    May 1, 2010
    Posts:
    286
    Note that MacOSX caches too - just deleting the plist file will not clear that cache.
     
  7. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    The simplest thing is to log out and back in again. There's also some shell command which I forget....

    --Eric
     
  8. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    I'll try that. thanks.