Search Unity

Feedback Noticed an undocumented feature regarding version control

Discussion in 'Addressables' started by Lucas-Hehir, Jul 8, 2020.

  1. Lucas-Hehir

    Lucas-Hehir

    Joined:
    Jul 2, 2014
    Posts:
    41
    Hey guys,

    If anyone else has been wondering where and when changes to an assets addressable metadata happen for version control reasons, I've got a bit of helpful advice that doesn't seem to appear anywhere in the documentation.

    As an example, if you make a non-addressable asset addressable and move it into an asset group, no changes will be detected in the project file system. This is really confusing from a version control point of view because you would expect some kind of metadata change. This does happen and it happens in the respective .asset AssetGroup files.

    However
    .

    You have to literally save (ctrl + s) as though you are saving a scene before any of these changes are committed to file. You can make hundreds of asset group changes and have nothing to commit to source control technically, which is horrendously confusing at first.

    It would be of immense value if these changes were immediately reflected on file rather than waiting for an arbitrary scene save.
     
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,012
    glitchers and ProtoTerminator like this.
  3. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    586
    Ah that makes sense, because Addressables uses ScriptableObjects. I found that annoying, too. I've gotten into the habit of always save project before git commit.
     
    glitchers likes this.
  4. Lucas-Hehir

    Lucas-Hehir

    Joined:
    Jul 2, 2014
    Posts:
    41
    It'll most likely happen for most people incidentally, since saving is basically a nervous tic at this point. Nonetheless, important thing to realise at first. I was dragging assets between groups and comparing with source control for a good ten minutes before figuring out exactly what was making the files change.