示例#1
0
        public override void OnInspectorGUI()
        {
            if (this.m_SubstanceStyles == null)
            {
                this.m_SubstanceStyles = new SubstanceImporterInspector.SubstanceStyles();
            }
            EditorGUILayout.Space();
            EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
            this.MaterialListing();
            this.MaterialManagement();
            EditorGUILayout.EndVertical();
            Editor selectedMaterialInspector = this.GetSelectedMaterialInspector();

            if (selectedMaterialInspector)
            {
                selectedMaterialInspector.DrawHeader();
                selectedMaterialInspector.OnInspectorGUI();
            }
        }
        public override void OnInspectorGUI()
        {
            if (this.m_SubstanceStyles == null)
            {
                this.m_SubstanceStyles = new SubstanceImporterInspector.SubstanceStyles();
            }
            EditorGUILayout.Space();
            EditorGUILayout.BeginVertical();
            this.MaterialListing();
            this.MaterialManagement();
            EditorGUILayout.EndVertical();
            Editor materialInspector = this.GetSelectedMaterialInspector();

            if (!(bool)((UnityEngine.Object)materialInspector))
            {
                return;
            }
            materialInspector.DrawHeader();
            materialInspector.OnInspectorGUI();
        }
 public override void OnInspectorGUI()
 {
   if (this.m_SubstanceStyles == null)
     this.m_SubstanceStyles = new SubstanceImporterInspector.SubstanceStyles();
   EditorGUILayout.Space();
   EditorGUILayout.BeginVertical();
   this.MaterialListing();
   this.MaterialManagement();
   EditorGUILayout.EndVertical();
   Editor materialInspector = this.GetSelectedMaterialInspector();
   if (!(bool) ((UnityEngine.Object) materialInspector))
     return;
   materialInspector.DrawHeader();
   materialInspector.OnInspectorGUI();
 }
		public override void OnInspectorGUI()
		{
			if (this.m_SubstanceStyles == null)
			{
				this.m_SubstanceStyles = new SubstanceImporterInspector.SubstanceStyles();
			}
			EditorGUILayout.Space();
			EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
			this.MaterialListing();
			this.MaterialManagement();
			EditorGUILayout.EndVertical();
			Editor selectedMaterialInspector = this.GetSelectedMaterialInspector();
			if (selectedMaterialInspector)
			{
				selectedMaterialInspector.DrawHeader();
				selectedMaterialInspector.OnInspectorGUI();
			}
		}