8 [RequireComponent(typeof(Text))]
25 label = GetComponent<Text>();
29 private void OnEnable()
31 if (Application.isPlaying &&
picker !=
null)
38 private void OnDestroy()
48 private void OnValidate()
50 label = GetComponent<Text>();
55 private void ColorChanged(
Color color)
60 private void HSVChanged(
float hue,
float sateration,
float value)
65 private void UpdateValue()
75 label.text =
prefix + ConvertToDisplayString(value);
79 private string ConvertToDisplayString(
float value)
84 return Mathf.FloorToInt(value).ToString();
ColorPickerControl picker
HSVChangedEvent onHSVChanged
float GetValue(ColorValues type)
ColorChangedEvent onValueChanged