예제 #1
0
        /// <summary>
        /// Process input changed event.
        /// </summary>
        /// <param name="input">Input.</param>
        protected virtual void InputChanged(string input)
        {
            Color32 color;

            if (Utilites.TryHexToRGBA(input, out color))
            {
                if (!WithAlpha)
                {
                    color.a = currentColor.a;
                }

                currentColor = color;
                OnChangeRGB.Invoke(currentColor);
            }
        }