/************************************************/ /* */ /* Copyright (c) 2018 - 2021 monitor1394 */ /* https://github.com/monitor1394 */ /* */ /************************************************/ using UnityEditor; namespace XCharts { /// /// Editor class used to edit UI BarChart. /// [CustomEditor(typeof(BarChart), false)] public class BarChartEditor : CoordinateChartEditor { protected override void OnEnable() { base.OnEnable(); if(target == null) return; m_Chart = (BarChart)target; } protected override void OnEndInspectorGUI() { base.OnEndInspectorGUI(); if (m_Chart == null && target == null) { return; } } } }