Files
Studio/Assets/Scripts/UVC/UI/UVCKeyValueItem.cs
2025-05-25 14:19:35 +09:00

20 lines
499 B
C#

using TMPro;
namespace UVC.UI
{
public class UVCKeyValueItem : MonoBehaviour
{
TextMeshProUGUI text_Key;
TextMeshProUGUI text_Value;
private void Awake()
{
text_Key = transform.Find(nameof(text_Key)).GetComponent<TextMeshProUGUI>();
text_Value = transform.Find(nameof(text_Value)).GetComponent<TextMeshProUGUI>();
}
public void SetValue(string value)
{
text_Value.SetText(value);
}
}
}