Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Modification on AssetPostprocessor.OnPreprocessXXX does not work for cache server

Discussion in 'Cache Server' started by Kichang-Kim, Feb 21, 2019.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    499
    Hi, I found that modified import settings from AssetPostprocessor.OnPreprocessXXX does not applied for generating hash for cache server.

    Reproduction steps:
    1. Turn on Cache server
    1. Make AssetPostprocessor modifying some settings on OnPreprocessXXX
    2. Import some asset A
    3. Change import setting manually for asset A
    4. Unity automatically re-import asset A, but import setting is reverted by AssetPostprocessor so the hash of asset should be same, but Unity does not download cached asset A because the modification on AssetPostprocessor does not used for calculating the hash for cache server.
     
unityunity