Files
peng-zhihui 06ec2e469e Released.
2022-03-13 06:31:07 +08:00

39 lines
742 B
C#

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