public void UpdateUI() { m_ColorRect.color = m_FinalColor; m_HSCircle.localPosition = new Vector3(m_Hue / 360, m_Sat, 0); m_BrtSlider.sliderValue = m_Brt; m_BrtSliderColor.color = VCUtils.HSB2RGB(m_Hue, m_Sat, 1); m_RSlider.sliderValue = m_FinalColor.r; m_GSlider.sliderValue = m_FinalColor.g; m_BSlider.sliderValue = m_FinalColor.b; m_RValLabel.text = (m_FinalColor.r * 100).ToString("0") + "%"; m_GValLabel.text = (m_FinalColor.g * 100).ToString("0") + "%"; m_BValLabel.text = (m_FinalColor.b * 100).ToString("0") + "%"; }