- Home /
 
               Question by 
               Sspyrshlsx · Nov 19, 2020 at 07:44 PM · 
                guicustom editoreditorguiimport settings  
              
 
              How can I make a custom inspector for the Texture Import Settings?
So I tried making a custom editor for the TextureImporter class but I guess there is already a built in editor that seems to disappear when I make a custom editor for it. How can I keep the built in editor but add my own stuff?
 [CustomEditor(typeof(TextureImporter))]
 public class OverrideImportSettings : Editor
 {
     public override void OnInspectorGUI()
     {
         base.OnInspectorGUI();
         if (GUILayout.Button("Test"))
         {
 
         }
     }
 }
The insperctor after I apply the script above: 
 
                 
                screenshot-1.png 
                (57.6 kB) 
               
 
              
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Sspyrshlsx · Nov 20, 2020 at 12:05 PM
EDIT: I have managed to get an even better workflow without modifying the texture import settings, but in case anyone else is wondering how, I won't close the thread.
Answer by DaveA · Sep 09, 2021 at 05:19 PM
Probably related to this: https://forum.unity.com/threads/how-to-override-model-importer-inspector.972678/
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                