Unity's MaterialEditor not working correctly!
Switching from standard shader to my custom shader that has a custom inspector does not trigger the custom inspector to draw, as a result it draws the default inspector. After deselecting the and reselecting the material, then it draws the custom inspector.
I assume it's a bug of unity as I put debug statement in onEnable and that also doesn't get printed right after switching. My custom inspector class inherits from MaterialEditor. Is there any workaround available?
Your answer
![](https://koobas.hobune.stream/wayback/20220612172040im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[Help] GUI Button - Enables Raycast Which Selects The Object In Scene Hierarchy Through Play Window 0 Answers
GUI.Window. Wanting to allow clickthrough 0 Answers
Unity Editor - Group Public GameObjects 0 Answers
Making a custom selection box with DrawRect 1 Answer
How to change the text of EditorGUILayout.TextField 2 Answers