AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
GaugePointer.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using System.Collections.Generic;
9 using UnityEngine;
10 
11 namespace XCharts
12 {
13 
18  [System.Serializable]
19  public class GaugePointer : SubComponent
20  {
21  [SerializeField] private bool m_Show = true;
22  [SerializeField] private float m_Length = 0.8f;
23  [SerializeField] private float m_Width = 15;
24 
29  public bool show
30  {
31  get { return m_Show; }
32  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
33  }
38  public float length
39  {
40  get { return m_Length; }
41  set { if (PropertyUtil.SetStruct(ref m_Length, value)) SetVerticesDirty(); }
42  }
47  public float width
48  {
49  get { return m_Width; }
50  set { if (PropertyUtil.SetStruct(ref m_Width, value)) SetVerticesDirty(); }
51  }
52  }
53 }
XCharts.GaugePointer.length
float length
Pointer length. It can be an absolute value, or it can be a percentage relative to the radius (0-1)....
Definition: GaugePointer.cs:39
XCharts.SubComponent
Definition: ChartComponent.cs:71
XCharts
Definition: RewardChart.cs:14
XCharts.GaugePointer.width
float width
Pointer width. 指针宽度。
Definition: GaugePointer.cs:48
XCharts.GaugePointer.show
bool show
Whether to display a pointer. 是否显示指针。
Definition: GaugePointer.cs:30
XCharts.GaugePointer
Settings related to gauge pointer. 仪表盘指针相关设置。
Definition: GaugePointer.cs:19