重构LineChart和BarChart,移除Line和Bar组件,参数统一放到Serie中配置。

This commit is contained in:
monitor1394
2019-08-15 21:44:30 +08:00
parent 52ee1fe788
commit 3e506f9576
32 changed files with 13681 additions and 21508 deletions

View File

@@ -9,19 +9,10 @@ namespace XCharts
[CustomEditor(typeof(LineChart), false)]
public class LineChartEditor : CoordinateChartEditor
{
protected SerializedProperty m_Line;
protected override void OnEnable()
{
base.OnEnable();
m_Target = (LineChart)target;
m_Line = serializedObject.FindProperty("m_Line");
}
protected override void OnEndInspectorGUI()
{
base.OnEndInspectorGUI();
EditorGUILayout.PropertyField(m_Line, true);
}
}
}