Beispiel #1
0
        void ChangeSliderAlpha(TextMeshProUGUI label, TextMeshProUGUI text, MinMaxPropertyControl control, Image slider, float alpha)
        {
            var textColor = m_TextColor;
            var sliderColor = m_SliderColor;
            var sliderBackColor = m_SliderBackgroundColor;
            textColor.a = alpha;
            sliderColor.a = alpha;
            sliderBackColor.a = alpha;

            label.color = textColor;
            text.color = textColor;
            control.GetComponent<Image>().color = sliderBackColor;
            slider.color = sliderColor;
        }