Search Unity

Remove Asset from Static Contents Group will not been found as modify

Discussion in 'Addressables' started by sniperbat, Jun 27, 2020.

  1. sniperbat

    sniperbat

    Joined:
    Aug 25, 2014
    Posts:
    7
    Hello

    Remove Assets from the group that marked as "Cannot Change Post Release", then do "Check for Content Update Restrictions". There are nothing can be found as modifications, and will not create a Update AB.
    Because in file:"ContentUpdateScript.cs", function: "GatherExplicitModifedEnteries". Just use assets which remain in the group to search in cacheData. Removed assets will be ignored and not add to modifiedEntries.

    I think this is a bug,remove assets also need to treat as modifications.

    Best regards.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
  3. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    762
    Hey @sniperbat so this is actually expected behavior. We do this because removing an asset from a static content group doesn't actually invalidate the asset bundles that are build behind the scenes. Static Content is typically meant for data that will ship locally with your game. This means if we detected that removal as a change you'd have to deploy a whole new version of your games build just to use this new bundle. And if all you've done is remove an asset then functionally there will be no difference.

    If you really wanted a new bundle built you would have to do a new player content build.