mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 21:00:11 +00:00
33 lines
1011 B
C#
33 lines
1011 B
C#
using UnityEditor;
|
|
|
|
namespace XCharts
|
|
{
|
|
/// <summary>
|
|
/// Editor class used to edit UI BarChart.
|
|
/// </summary>
|
|
|
|
[CustomEditor(typeof(CoordinateChart), false)]
|
|
public class CoordinateChartEditor : BaseChartEditor
|
|
{
|
|
protected SerializedProperty m_Coordinate;
|
|
protected SerializedProperty m_XAxis;
|
|
protected SerializedProperty m_YAxis;
|
|
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
m_Target = (CoordinateChart)target;
|
|
m_Coordinate = serializedObject.FindProperty("m_Coordinate");
|
|
m_XAxis = serializedObject.FindProperty("m_XAxis");
|
|
m_YAxis = serializedObject.FindProperty("m_YAxis");
|
|
}
|
|
|
|
protected override void OnStartInspectorGUI()
|
|
{
|
|
base.OnStartInspectorGUI();
|
|
EditorGUILayout.PropertyField(m_Coordinate);
|
|
EditorGUILayout.PropertyField(m_XAxis);
|
|
EditorGUILayout.PropertyField(m_YAxis);
|
|
}
|
|
}
|
|
} |