Search Unity

Unity's version control component has been upgraded to Plastic SCM.

how to revert one asset

Discussion in 'Unity Collaborate' started by laurentlavigne, Jan 13, 2017.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    I changed compression on 1000 textures and now that good old NGUI is choking so I need to revert some of the textures. How do I do that with collab? Right clicking on the texture doesn't offer "revert changes" in the context menu and the collab tab doesn't have search + all the assets are in some random order.
     
  2. dtakahas

    dtakahas

    Joined:
    Oct 22, 2015
    Posts:
    83
    Hey there,

    This will only work in the 5.5 Collab Preview or 5.6 Beta, so if you aren't on one of those, maybe someone else can offer an idea.

    What I would do in this situation is use the selective publish feature:

    1. Browse to your textures in the project browser
    2. Select all
    3. Search for the ones you want to revert and deselect them
    4. Right click on one of the selected ones and choose Collaborate > Publish


    5. This will open up a dialogue


    6. Use that to publish. After publishing you will hopefully have your undesirables as the only outstanding changes.
    7. Use the "Restore" button in the history tab on the commit you just made to throw away the unwanted changes. It will warn you that you are going to throw away local changes which is what we're after.


    I realize that's a lot to go through. A searchable change list would be very nice.
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    Yes or an extra entry in the context menu of an asset would work too, easier to implement (hint hint).
     
  4. dtakahas

    dtakahas

    Joined:
    Oct 22, 2015
    Posts:
    83
    Yes, that too :D
     
    universityofgames likes this.