Hello, guys. I’ve developed an image filter that is applied to all textures when they are imported by extending the class AssetPostprocessor. Now, I’d like to control to which textures is the filter applied to by adding a simple boolean property to the built-in Texture2D or TextureImporter classes to flag which textures should use the filter.
I’d also like to have the texture inspector exposing this flag as a simple checkbox. How can I do this?
Ok, perhaps I wasn’t clear enough… Is there any way to extend the built-in Texture2D class with custom data? In particular, with a boolean property that shows as a checkbox in the inspector?
Thanks in advance