Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    1,008
    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.