namespace UIWidgets { using UnityEngine; using UnityEngine.UI; /// /// TabIconButton. /// public class TabIconButton : TabIconButtonBase, IUpgradeable { /// /// The name. /// [SerializeField] [HideInInspector] [System.Obsolete("Replaced with NameAdapter.")] public Text Name; /// /// Upgrade this instance. /// public virtual void Upgrade() { #pragma warning disable 0612, 0618 Utilities.GetOrAddComponent(Name, ref NameAdapter); #pragma warning restore 0612, 0618 } #if UNITY_EDITOR /// /// Validate this instance. /// protected override void OnValidate() { Compatibility.Upgrade(this); } #endif } }