Files
XCharts/Editor/PolarChartEditor.cs

40 lines
1.3 KiB
C#
Raw Normal View History

2021-01-11 08:54:28 +08:00
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
2020-07-01 09:38:00 +08:00
using UnityEditor;
namespace XCharts
{
/// <summary>
/// Editor class used to edit UI PolarChart.
/// </summary>
[CustomEditor(typeof(PolarChart), false)]
public class PolarChartEditor : BaseChartEditor
{
2021-01-11 08:54:28 +08:00
protected SerializedProperty m_Polars;
protected SerializedProperty m_RadiusAxes;
protected SerializedProperty m_AngleAxes;
2020-07-01 09:38:00 +08:00
protected override void OnEnable()
{
base.OnEnable();
2021-01-11 08:54:28 +08:00
m_Chart = (PolarChart)target;
m_Polars = serializedObject.FindProperty("m_Polars");
m_RadiusAxes = serializedObject.FindProperty("m_RadiusAxes");
m_AngleAxes = serializedObject.FindProperty("m_AngleAxes");
2020-07-01 09:38:00 +08:00
}
protected override void OnStartInspectorGUI()
{
base.OnStartInspectorGUI();
2021-01-11 08:54:28 +08:00
var showAll = m_MultiComponentMode.boolValue;
BlockListField(showAll, m_Polars);
BlockListField(showAll, m_RadiusAxes);
BlockListField(showAll, m_AngleAxes);
2020-07-01 09:38:00 +08:00
}
}
}