UnityEditor.MaterialEditor.DetectShaderChanged C# (CSharp) Method

DetectShaderChanged() private method

private DetectShaderChanged ( ) : void
return void
        private void DetectShaderChanged()
        {
            Material target = this.target as Material;
            if (target.shader != this.m_Shader)
            {
                string oldEditorName = (this.m_Shader == null) ? string.Empty : this.m_Shader.customEditor;
                this.CreateCustomShaderGUI(target.shader, oldEditorName);
                this.m_Shader = target.shader;
                InspectorWindow.RepaintAllInspectors();
            }
        }
MaterialEditor