namespace UIWidgets { using System; using UnityEngine; using UnityEngine.UI; /// /// TableHeader cell info. /// [Serializable] public class TableHeaderCellInfo { /// /// The cell RectTransform component. /// public RectTransform Rect; /// /// The cell LayoutElement component. /// public LayoutElement LayoutElement; /// /// The cell position. /// public int Position; /// /// Gets the cell width. /// /// The width. public float Width { get { return Rect.rect.width; } } /// /// Gets a value indicating whether this gameobject active self. /// /// true if active self; otherwise, false. public bool ActiveSelf { get { return Rect.gameObject.activeSelf; } } } }