Files
XCharts/Runtime/Component/Comment/CommentMarkStyle.cs

27 lines
915 B
C#
Raw Permalink Normal View History

2022-05-22 22:17:38 +08:00
using System;
using UnityEngine;
namespace XCharts.Runtime
{
/// <summary>
2022-06-15 07:36:05 +08:00
/// the comment mark style.
2023-11-11 23:32:24 +08:00
/// ||注解项区域样式。
2022-05-22 22:17:38 +08:00
/// </summary>
[Serializable]
public class CommentMarkStyle : ChildComponent
{
[SerializeField] private bool m_Show = true;
[SerializeField] private LineStyle m_LineStyle;
/// <summary>
/// Set this to false to prevent this comment item from showing.
2023-11-11 23:32:24 +08:00
/// ||是否显示当前注解项。
2022-05-22 22:17:38 +08:00
/// </summary>
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); } }
2022-06-15 07:36:05 +08:00
/// <summary>
/// line style of comment mark area.
2023-11-11 23:32:24 +08:00
/// ||线条样式。
2022-06-15 07:36:05 +08:00
/// </summary>
2022-05-22 22:17:38 +08:00
public LineStyle lineStyle { get { return m_LineStyle; } set { if (PropertyUtil.SetClass(ref m_LineStyle, value)) SetVerticesDirty(); } }
}
}