BehaviorDebugerDataUi.cs 547 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using TMPro;
  6. using Sirenix.OdinInspector;
  7. namespace KairoEngine
  8. {
  9. public class BehaviorDebugerDataUi : MonoBehaviour
  10. {
  11. public TextMeshProUGUI label;
  12. public TextMeshProUGUI value;
  13. public void Setup(string label, string value, Color color)
  14. {
  15. this.label.text = label;
  16. this.value.text = "<color=#" + ColorUtility.ToHtmlStringRGB(color) + ">" + value + "</color>";
  17. }
  18. }
  19. }