Search Unity

Addressables' labels won't save

Discussion in 'Addressables' started by OmiCron07, Sep 20, 2018.

  1. OmiCron07

    OmiCron07

    Joined:
    Jun 27, 2015
    Posts:
    7
    I have an issue with Git, when I restore my repo, the addressable's labels on my assets are lost. Here is my .gitignore:


    I suppose something is ignored and should not.
     
    Last edited: Sep 22, 2018
  2. OmiCron07

    OmiCron07

    Joined:
    Jun 27, 2015
    Posts:
    7
    Update, I think this is not my .gitignore the problem, because if I close Unity and reopen, I have to set again my labels. Either I do not know how to save the addressables or this is a bug.
     
    Last edited: Sep 22, 2018
  3. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    We have had a few issues with the settings object not properly becoming dirty (thus Unity knowing it needs to be saved). We have addressed those and should have a fix with the next release.
     
  4. AlkisFortuneFish

    AlkisFortuneFish

    Joined:
    Apr 26, 2013
    Posts:
    973
    In the mean time, and in general if you have much custom tooling and third party editor tooling, I’d add a SetDirty asset context menu. It can save the day.
     
    Soulside likes this.
  5. Soulside

    Soulside

    Joined:
    Nov 1, 2018
    Posts:
    30
    @unity_bill Hey!
    I experienced this issue today. The AddressableAssetSettings won't be saved.
    1. I changed the Build Path and Load Path from Locals to Remotes.
    2. Pressed Ctrl+S
    3. Go to File->Save Project
    4. Checked the git status. There was no changes for AddressableAssetSettings file.

    I tried to repeat this after Unity restart.
    Then I found this thread and implemented this method:

    Code (CSharp):
    1. [MenuItem("Assets/Set dirty")]
    2. private static void OnSetDirty()
    3. {
    4.     EditorUtility.SetDirty(Selection.activeObject);
    5. }
    After setting the AddressableAssetSettings file dirty and Ctrl+S git shows modifications on this file.
    Unity version: 2019.3.12f1
    Addressables version: 1.12.0
     
  6. norman_lnh

    norman_lnh

    Joined:
    Dec 16, 2015
    Posts:
    10
    still have this issue in 2019.4.3 and 2019.4.18.
     
  7. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    Which version of Addressables are you using, @norman_lnh ?
     
  8. sututhanva

    sututhanva

    Joined:
    Feb 24, 2021
    Posts:
    4
    Still have problem at 2021.3.34f1