4[RequireComponent(typeof(Text))]
21 label = GetComponent<Text>();
24 private void OnEnable()
26 if (Application.isPlaying &&
picker !=
null)
33 private void OnDestroy()
43 private void OnValidate()
45 label = GetComponent<Text>();
50 private void ColorChanged(
Color color)
55 private void HSVChanged(
float hue,
float sateration,
float value)
60 private void UpdateValue()
70 label.text =
prefix + ConvertToDisplayString(value);
74 private string ConvertToDisplayString(
float value)
78 return Mathf.FloorToInt(value).ToString();
ColorChangedEvent onValueChanged
float GetValue(ColorValues type)
HSVChangedEvent onHSVChanged