AssetDatabase.GetAssetDependencyHash(file) may get different value

I did’t change any assert,only restart unity,but i find the value of one file may change when call AssetDatabase.GetAssetDependencyHash.So it will cost a long time to Build Assebundle use SBP even if there are nothing change,becaust the buildCache won’t work if the dependecyHash change.
ps:The file has extension whit .compute,and the hash may change back the same if i restart unity many time.

Hi, did you find a solution?
I faced the same bug but with a .spriteatlas asset

Update: looks like unity may update line endings on restart or after asset bundles build. And CVS might ignore this type of changes.

I found that after reimport the asset,the value of the asset by call GetAssetDependencyHash won’t never change

1 Like