Custom texture importer

I am trying to write a custom texture importer, basically a postprocess for importing an exr HDR image and converting it into a DXT5 with brightness encoded in alpha in a particular way, but I haven't been successful.

I ideally want this process to be transparent, i.e. script is applied to the image, and when the source file changes, the DXT5 is automatically regenerated.

Anyone managed to do something like this?

Cheers, RedTurkeyWizard

You might want to look into AssetPortprocessor class - it has methods for postprocessing imported textures.