Label.CrossFadeColor
Declaration#
public virtual void CrossFadeColor(Color color, float duration, bool ignoreTimeScale, bool useAlpha)Parameters#
| Name | Description |
|---|---|
| color | Color to use |
| duration | Duration of tweening |
| ignoreTimeScale | Ignore time scale during tweening |
| useAlpha | Apply alpha |
Description#
Tweens between current and new color
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(Label target, Color other) { target.CrossFadeColor(other, 0.5f, true, true); }
}