AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
PolarChartEditor.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using UnityEditor;
9 
10 namespace XCharts
11 {
15  [CustomEditor(typeof(PolarChart), false)]
17  {
18  protected SerializedProperty m_Polars;
19  protected SerializedProperty m_RadiusAxes;
20  protected SerializedProperty m_AngleAxes;
21 
22  protected override void OnEnable()
23  {
24  base.OnEnable();
25  if(target == null) return;
26  m_Chart = (PolarChart)target;
27  m_Polars = serializedObject.FindProperty("m_Polars");
28  m_RadiusAxes = serializedObject.FindProperty("m_RadiusAxes");
29  m_AngleAxes = serializedObject.FindProperty("m_AngleAxes");
30  }
31 
32  protected override void OnStartInspectorGUI()
33  {
34  base.OnStartInspectorGUI();
35  var showAll = m_MultiComponentMode.boolValue;
36  BlockListField(showAll, m_Polars);
37  BlockListField(showAll, m_RadiusAxes);
38  BlockListField(showAll, m_AngleAxes);
39  }
40  }
41 }
XCharts
Definition: RewardChart.cs:14
XCharts.PolarChartEditor
Editor class used to edit UI PolarChart.
Definition: PolarChartEditor.cs:16
XCharts.PolarChart
Definition: PolarChart.cs:20
XCharts.BaseChartEditor
Editor class used to edit UI BaseChart.
Definition: BaseChartEditor.cs:19