Download

Custom asset postprocessor

Hi,
I’m wondering if there is something like unity’s AssetPostprocessor. That is if some asset is reimported/changed then some script would be run.

In my workflow I’m generating texture atlas with some xml files from the textures. So if some texture is updated, the atlas is regenerated (also with xml files). In unity, this could be done using AssetPostprocessor. I’ve noticed that there is support for python editor script but haven’t found any info about to hook on import process.

Appreciate any help.

Thank You

So, there are more than one way for post processing the assets. The one that suits my needs the most is using UImportSubsystem and using OnAssetPostImport “signal”. Then one can do anything he wants.