I want to run a script every time the Apply button is clicked on a texture importer. Currently, from what I can tell, OnPreprocessTexture() is only called when a setting value has not been previously applied. So if you do the following:
Set Max Size = 256
Apply
OnPreprocessTexture() is called.
Set Max Size = 512
Apply
OnPreprocessTexture is called.
Set Max Size = 256
Apply
OnPreprocessTexture is NOT called.
I’m wondering if there is a way to detect that #8 occurred?
Is OnPostprocessTexture called in that scenario? Otherwise, you might be stuck with the global “anything in the project has changed” callback which I can’t remember the exact delegate for this early in the morning.
Okay, what is your goal exactly? (No, detecting the Apply button is not possible and it is not a goal, it is a tool to achieve something, what is this goal? What are you trying to do?)