Search Unity

Unity's version control component has been upgraded to Plastic SCM.

AssetPostprocessor OnPostProcessTexture not called after pulling changes

Discussion in 'Unity Collaborate' started by flashframe, Jul 10, 2019.

  1. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    797
    Hi!

    When pulling changes to textures from collaborate, Unity spends time reimporting and recompressing the textures, but AssetPostprocessor callbacks aren't being fired.

    Code (CSharp):
    1. AssetPostprocessor.OnPreprocessTexture()
    2. AssetPostprocessor.OnPostprocessTexture(Texture2D)
    https://docs.unity3d.com/ScriptReference/AssetPostprocessor.OnPostprocessTexture.html

    We are using TexturePacker to pack our sprites, and every time we push changes to a texture, the atlas packing is broken, because the Texture Packer importer doesn't receive these messages.

    Is there any work around for this?

    Thanks!