TextMediator.TextMeshPro.cs 594 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Bitsplash.DatePicker
  5. {
  6. public partial class TextMediator
  7. {
  8. partial void MediateTextMeshProText(string text)
  9. {
  10. var tmp = GetComponent<TMPro.TextMeshProUGUI>();
  11. if (tmp != null)
  12. tmp.text = text;
  13. }
  14. partial void MediateTextMeshProColor(Color color)
  15. {
  16. var tmp = GetComponent<TMPro.TextMeshProUGUI>();
  17. if (tmp != null)
  18. tmp.color =color;
  19. }
  20. }
  21. }