public override void OnFlowSettingsGUI() { if (Heatmap.settings == null) { Heatmap.settings = Heatmap.GetSettingsFile(); } if (this.noDataTexture == null) { this.noDataTexture = UnityEngine.Resources.Load <Texture>("UI.Windows/Heatmap/NoData"); } var settings = Heatmap.settings; if (settings == null) { EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (HeatmapSettings)."), MessageType.Error); } else { GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel); if (this.editor == null) { this.editor = Editor.CreateEditor(settings) as HeatmapSettingsEditor; this.editor.SetResetCallback(this.ResetCache); } if (this.editor != null) { this.editor.OnInspectorGUI(); } } }
public override void OnFlowSettingsGUI() { if (Heatmap.settings == null) Heatmap.settings = Heatmap.GetSettingsFile(); if (this.noDataTexture == null) this.noDataTexture = Resources.Load<Texture>("UI.Windows/Heatmap/NoData"); var settings = Heatmap.settings; if (settings == null) { EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (HeatmapSettings)."), MessageType.Error); } else { GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel); if (this.editor == null) { this.editor = Editor.CreateEditor(settings) as HeatmapSettingsEditor; this.editor.SetResetCallback(this.ResetCache); } if (this.editor != null) { this.editor.OnInspectorGUI(); } } }