mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 13:21:36 +00:00
27 lines
589 B
C#
27 lines
589 B
C#
|
|
using UnityEditor;
|
|||
|
|
|
|||
|
|
namespace XCharts
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Editor class used to edit UI BarChart.
|
|||
|
|
/// </summary>
|
|||
|
|
|
|||
|
|
[CustomEditor(typeof(BarChart), false)]
|
|||
|
|
public class BarChartEditor : CoordinateChartEditor
|
|||
|
|
{
|
|||
|
|
protected override void OnEnable()
|
|||
|
|
{
|
|||
|
|
base.OnEnable();
|
|||
|
|
m_Target = (BarChart)target;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void OnEndInspectorGUI()
|
|||
|
|
{
|
|||
|
|
base.OnEndInspectorGUI();
|
|||
|
|
if (m_Target == null && target == null)
|
|||
|
|
{
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|