AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
TitleStyleDrawer.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using System.Collections.Generic;
9 using UnityEditor;
10 using UnityEngine;
11 
12 namespace XCharts
13 {
14  [CustomPropertyDrawer(typeof(TitleStyle), true)]
16  {
17  public override string ClassName { get { return "TitleStyle"; } }
18  public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
19  {
20  base.OnGUI(pos, prop, label);
21  if (MakeFoldout(prop, "m_Show"))
22  {
23  ++EditorGUI.indentLevel;
24  PropertyField(prop, "m_TextStyle");
25  --EditorGUI.indentLevel;
26  }
27  }
28  }
29 }
XCharts.BasePropertyDrawer
Definition: BasePropertyDrawer.cs:15
XCharts
Definition: RewardChart.cs:14
XCharts.TitleStyleDrawer
Definition: TitleStyleDrawer.cs:15
XCharts.SerieSymbolType.Rect
@ Rect
正方形。可通过设置itemStyle的cornerRadius变成圆角矩形。