Search Unity

  1. Unity 2019.2 is now released.
    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:
    274
    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.