UnityEditor.ProceduralMaterialInspector.OnInspectorGUI C# (CSharp) Method

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void
        public override void OnInspectorGUI()
        {
            using (new EditorGUI.DisabledScope(AnimationMode.InAnimationMode()))
            {
                this.m_MightHaveModified = true;
                if (this.m_Styles == null)
                {
                    this.m_Styles = new Styles();
                }
                ProceduralMaterial target = base.target as ProceduralMaterial;
                m_Importer = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(base.target)) as SubstanceImporter;
                if (m_Importer == null)
                {
                    this.DisplayRestrictedInspector();
                }
                else
                {
                    if (m_Material != target)
                    {
                        m_Material = target;
                        m_ShaderPMaterial = target.shader;
                    }
                    if (base.isVisible && (target.shader != null))
                    {
                        if (m_ShaderPMaterial != target.shader)
                        {
                            m_ShaderPMaterial = target.shader;
                            foreach (ProceduralMaterial material2 in base.targets)
                            {
                                (AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(material2)) as SubstanceImporter).OnShaderModified(material2);
                            }
                        }
                        if (base.PropertiesGUI())
                        {
                            m_ShaderPMaterial = target.shader;
                            foreach (ProceduralMaterial material3 in base.targets)
                            {
                                (AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(material3)) as SubstanceImporter).OnShaderModified(material3);
                            }
                            base.PropertiesChanged();
                        }
                        GUILayout.Space(5f);
                        this.ProceduralProperties();
                        GUILayout.Space(15f);
                        this.GeneratedTextures();
                    }
                }
            }
        }