mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
/************************************************/
|
|
/* */
|
|
/* Copyright (c) 2018 - 2021 monitor1394 */
|
|
/* https://github.com/monitor1394 */
|
|
/* */
|
|
/************************************************/
|
|
|
|
using UnityEditor;
|
|
|
|
namespace XCharts
|
|
{
|
|
/// <summary>
|
|
/// Editor class used to edit UI PolarChart.
|
|
/// </summary>
|
|
[CustomEditor(typeof(PolarChart), false)]
|
|
public class PolarChartEditor : BaseChartEditor
|
|
{
|
|
protected SerializedProperty m_Polars;
|
|
protected SerializedProperty m_RadiusAxes;
|
|
protected SerializedProperty m_AngleAxes;
|
|
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
m_Chart = (PolarChart)target;
|
|
m_Polars = serializedObject.FindProperty("m_Polars");
|
|
m_RadiusAxes = serializedObject.FindProperty("m_RadiusAxes");
|
|
m_AngleAxes = serializedObject.FindProperty("m_AngleAxes");
|
|
}
|
|
|
|
protected override void OnStartInspectorGUI()
|
|
{
|
|
base.OnStartInspectorGUI();
|
|
var showAll = m_MultiComponentMode.boolValue;
|
|
BlockListField(showAll, m_Polars);
|
|
BlockListField(showAll, m_RadiusAxes);
|
|
BlockListField(showAll, m_AngleAxes);
|
|
}
|
|
}
|
|
} |