- Home /
Add parameter to texture inspector
I need to do some processing with AssetPostprocessor.OnPostprocessTexture on some texture and I'm curious to know if it's possible to add custom parameter in the texture inspector. Like a boolean to know if I need to postprocess or not this texture.
If it's not possible, the only other solution I found to know if I need to postprocess this texture is to add some prefix/suffix in the filename or put the texture in a specific folder. But I really hate hardcoding some stuff in filename/folder, so I hope there's another solution.
As there is no Editor functionality for extending the texture importer UI, and C# extention variables don't exist, I'm afraid doing some hardcoding will be unavoidale
Your answer
![](https://koobas.hobune.stream/wayback/20220613120322im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Assign texture to shader bypassing material (in Unity Editor) 1 Answer
Inspector->Texture: Can't effectively change properties (tiling/offset) 0 Answers
Isolating a single channel of a texture in the Inspector ? 0 Answers
Insert new custom class element with _default_ values to a SerializedProperty array? 1 Answer