16 [SerializeField]
protected float m_BorderWidth;
17 [SerializeField]
protected Color32 m_BorderColor;
18 [SerializeField]
protected Color32 m_BackgroundColor;
19 [SerializeField] [Range(10, 50)]
protected float m_TriangeLen = 20f;
27 get {
return m_BorderWidth; }
28 set {
if (PropertyUtil.SetStruct(ref m_BorderWidth, value)) SetVerticesDirty(); }
36 get {
return m_BorderColor; }
37 set {
if (PropertyUtil.SetColor(ref m_BorderColor, value)) SetComponentDirty(); }
46 get {
return m_BackgroundColor; }
47 set {
if (PropertyUtil.SetColor(ref m_BackgroundColor, value)) SetComponentDirty(); }
55 get {
return m_TriangeLen; }
56 set {
if (PropertyUtil.SetStruct(ref m_TriangeLen, value < 0 ? 1f : value)) SetVerticesDirty(); }
67 m_TextColor = ColorUtil.GetColor(
"#333");
68 m_BorderColor = ColorUtil.GetColor(
"#ccc");
69 m_BackgroundColor = ColorUtil.clearColor32;
72 m_TextColor = ColorUtil.GetColor(
"#333");
73 m_BorderColor = ColorUtil.GetColor(
"#ccc");
74 m_BackgroundColor = ColorUtil.clearColor32;
77 m_TextColor = ColorUtil.GetColor(
"#B9B8CE");
78 m_BorderColor = ColorUtil.GetColor(
"#ccc");
79 m_BackgroundColor = ColorUtil.clearColor32;
84 public void Copy(VisualMapTheme theme)
87 m_TriangeLen = theme.triangeLen;
88 m_BorderWidth = theme.borderWidth;
89 m_BorderColor = theme.borderColor;
90 m_BackgroundColor = theme.backgroundColor;