AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
LineArrow.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using System;
9 using UnityEngine;
10 
11 namespace XCharts
12 {
15  [Serializable]
16  public class LineArrow : SubComponent
17  {
18  public enum Position
19  {
23  End,
27  Start
28  }
29  [SerializeField] private bool m_Show;
30  [SerializeField] Position m_Position;
31  [SerializeField]
32  private Arrow m_Arrow = new Arrow()
33  {
34  width = 10,
35  height = 15,
36  offset = 0,
37  dent = 3
38  };
39 
44  public bool show
45  {
46  get { return m_Show; }
47  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
48  }
53  public Position position
54  {
55  get { return m_Position; }
56  set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetVerticesDirty(); }
57  }
58 
63  public Arrow arrow
64  {
65  get { return m_Arrow; }
66  set { if (PropertyUtil.SetClass(ref m_Arrow, value)) SetVerticesDirty(); }
67  }
68  }
69 }
XCharts.LineArrow.arrow
Arrow arrow
the arrow of line. 箭头。
Definition: LineArrow.cs:64
XCharts.LineArrow.Position
Position
Definition: LineArrow.cs:18
XCharts.SubComponent
Definition: ChartComponent.cs:71
XCharts
Definition: RewardChart.cs:14
XCharts.LineArrow
Definition: LineArrow.cs:16
XCharts.Arrow
Definition: Arrow.cs:16
XCharts.LineArrow.show
bool show
Whether to show the arrow. 是否显示箭头。
Definition: LineArrow.cs:45
XCharts.LineArrow.position
Position position
The position of arrow. 箭头位置。
Definition: LineArrow.cs:54