Quantcast
Channel: Questions in topic: "gui"
Viewing all articles
Browse latest Browse all 125

How can I make a custom inspector for the Texture Import Settings?

$
0
0
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:* ![alt text][1] [1]: /storage/temp/171290-screenshot-1.png

Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>