#define Graph_And_Chart_PRO using ChartAndGraph; using System; using UnityEngine; [Serializable] public class CategoryLabels : AlignedItemLabels { public enum ChartCategoryLabelOptions { All, FirstOnly } /// /// Determines which labels are visible /// [SerializeField] [Tooltip("Determines which labels are visible")] private ChartCategoryLabelOptions visibleLabels; /// /// Determines which labels are visible /// public ChartCategoryLabelOptions VisibleLabels { get { return visibleLabels; } set { visibleLabels = value; RaiseOnChanged(); } } protected override Action Assign { get { return (x, clear) => { if (clear) { if (x.CategoryLabels == this) x.CategoryLabels = null; } else { if (x.CategoryLabels != this) x.CategoryLabels = this; } }; } } }