| 1234567891011121314151617181920212223242526 |
- #if TextMeshPro
- using TMPro;
- using UnityEngine;
- using Sirenix.OdinInspector;
- namespace YIUIFramework
- {
- [AddComponentMenu("YIUIFramework/红点/红点TMP绑定 【RedDotTextBind】")]
- public class RedDotTmpBind : RedDotBind
- {
- [PropertyOrder(int.MinValue)]
- [SerializeField]
- [LabelText("文本")]
- [EnableIf("@UIOperationHelper.CommonShowIf()")]
- private TextMeshProUGUI m_Text;
- protected override void ChangeText()
- {
- if (m_Text != null)
- {
- m_Text.text = Count.ToString();
- }
- }
- }
- }
- #endif
|