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

Bug Can't get hidden_changes.conf to work

Discussion in 'Unity Version Control' started by flashframe, Jul 19, 2023.

  1. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Hi, I've read the documentation regarding the Hidden Changes List and it seems to be exactly what we need for our project. We have a bunch of terrain assets that need to be initially synced, but after that any changes should be ignored.

    I've tried adding the files to the hidden_changes.conf file, both through the Unity editor and manually, using the file name AND path. I tried adding the meta files too. I've updated to the latest version of the Version Control package and also the standalone Plastic SCM app (Mac OS).

    I've restarted Unity many times.

    But the files continue to appear in the pending changes list.

    Can anyone confirm that this feature works with Unity and if I need to do anything else to get it working?

    We're using: Unity 2021.3.23.f1
    Version Control 2.0.5

    Thanks!
     
    andreiagmu likes this.
  2. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    Disable the display of hidden_changes files in the Pending Changes Options:
    blub.png
    , and only enable it on demand (=in case you deliberately want to checkin a new version of your locally changed file, which can be useful).

    EDIT: ah sry, I'm assuming you are using the Unity plugin? No idea whether it has that option, we're always using the standalone Plastic/DevOps client
     
    flashframe likes this.
  3. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Thank you for helping. I am using the Unity plugin. It does have that option, but I already disabled it and still no luck. Anything else you can think of?
     
  4. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    842
    Note that the hidden changes rules only affect Controlled items (but not private or not committed items) and also it applies to locally changed items but not "checked-out" items. If you explicitly checkout an item, it won't be ignored.
     
  5. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Hi @carlosalba1985 thanks for replying.

    To clarify the situation. We have a set of terrain assets which have been committed to the repository. The scene tools we use dirty these files every time we open or run the scene file. So we would like to avoid them appearing in the "Changed Items" list and only push changes manually for these files.

    So the files aren't private, have been committed, and aren't explicitly checked out.

    I can see they are all listed in the hidden_changes.conf file, which is in the root directory of the project.

    They are listed like this in the file:

    TerrainData_e0926f7e-5115-41c6-a98e-0fae728f0720.asset
    TerrainData_dfa5b488-40c4-4ced-9e5c-8cea7f86d056.asset
    TerrainData_ac305017-8cde-4b06-a4e9-26458f71e74c.asset
    TerrainData_9b3e6d41-c122-44eb-a2b0-07c537dda4bd.asset

    Any other reason that they wouldn't be hidden?

    Thanks
     
    andreiagmu likes this.
  6. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    You also need to add the associated .meta files. YOu can just add an asterisk at the end:
    TerrainData_e0926f7e-5115-41c6-a98e-0fae728f0720.asset*
    TerrainData_dfa5b488-40c4-4ced-9e5c-8cea7f86d056.asset*
    TerrainData_ac305017-8cde-4b06-a4e9-26458f71e74c.asset*
    TerrainData_9b3e6d41-c122-44eb-a2b0-07c537dda4bd.asset*
     
  7. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    I did try manually adding the meta files, but I'll try the asterisk now, thanks!

    Edit: Still no luck...
     
  8. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Actually, in the inspector, under "Status", these files do say "Checked Out (Changed)"

    So is this the problem? I haven't manually checked them out. Do I need to do something to prevent them from being Checked Out?
     
    andreiagmu likes this.
  9. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    I've just tried checking "Enable Manual Checkout For Unity Assets" and that also doesn't work. The assets all say "Checked-Out" as soon as I launch the scene.
     
  10. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    842
    HI,

    In the three dots menu of the Unity Version Control window, there is a setting to configure if you want the plugin to checkout the assets by default or not. Does it help?

    Regards,
    Carlos.
     
    Last edited: Aug 17, 2023
  11. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    I can't see a three dots menu, but I tried the cog icon menu, which has an option called "Enable Manual Checkout For Unity Assets" - but does not stop the assets from being checked out automatically. I tried restarting Unity, but still not working for me.
     
    andreiagmu likes this.
  12. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    @carlosalba1985

    Following up on this - should I file a bug report? Can you think of anything else I might be missing?

    Thanks
     
  13. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    842
    What is your Unity plugin version? Yes, please open a ticket with us for further debugging.
     

    Attached Files:

  14. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    We're using version 2.0.7