UnityEngine.UI.Graphic.CrossFadeColor C# (CSharp) Method

CrossFadeColor() public method

public CrossFadeColor ( System.Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha ) : void
targetColor System.Color
duration float
ignoreTimeScale bool
useAlpha bool
return void
        public void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
        {
            this.CrossFadeColor(targetColor, duration, ignoreTimeScale, useAlpha, true);
        }

Same methods

Graphic::CrossFadeColor ( System.Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB ) : void

Usage Example

Esempio n. 1
0
        void StartColorTween(Color targetColor, bool instant)
        {
            if (m_TargetGraphic == null)
                return;

            m_TargetGraphic.CrossFadeColor(targetColor, instant ? 0f : m_Colors.fadeDuration, true, true);
        }
All Usage Examples Of UnityEngine.UI.Graphic::CrossFadeColor