using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace UnityEngine.Perception.GroundTruth { /// /// Key value pair panel UI object /// public class KeyValuePanel : MonoBehaviour { /// /// Key UI text element of the panel /// public Text key = null; /// /// Value UI text element of the panel /// public Text value = null; /// /// Sets the key of this key value pair /// /// The key of the key/value pair public void SetKey(string k) { if (k == null || k == string.Empty) return; key.text = k; } /// /// Sets the value of this key value pair /// /// The value of the key/value pair public void SetValue(string v) { value.text = v; } } }