Unity Issue Tracker - OnPreprocessAsset is not triggered when AssetPostprocessor version is changed and script recompiles
Fixed
UUM-134363
OnPreprocessAsset is not triggered when AssetPostprocessor version is changed and script recompiles
Unity: Asset - Database
Open
6.6.X
Won't Fix
6.5.X
6.4.X
6.3.X
6.0.X
The issue will be addressed in 6.6 with the introduction of a new API. There's too much risk in backporting and there's a pretty solid workaround that satisfies the user needs.
The issue will be addressed in 6.6 with the introduction of a new API. There's too much risk in backporting and there's a pretty solid workaround that satisfies the user needs.
The issue will be addressed in 6.6 with the introduction of a new API. There's too much risk in backporting and there's a pretty solid workaround that satisfies the user needs.
The issue will be addressed in 6.6 with the introduction of a new API. There's too much risk in backporting and there's a pretty solid workaround that satisfies the user needs.
Reproduction steps:
1. Open the attached “IN-132333” project
2. Duplicate the “New Text Document” Asset in the Project window
3. Observe the Console window
4. A log is printed from “AssetPostprocessor.OnPreprocessAsset” for the duplicated text asset
5. Open the “Editor/MyModelPostprocessor” Script in an IDE
6. Increment the “k_Version” value and save
7. Focus back to the Editor to let it recompile
8. Observe the Console window
Actual result: “OnPreprocessAsset” is not invoked and no logs are printed out
Expected result: “OnPreprocessAsset” is invoked and a log regarding the “Editor/MyModelPostprocessor” change is printed