highlighter = gameObject.AddComponent<Highlighter>(); //highlighter.ConstantOn(Color.red, 3f);//红色高亮 3秒到最亮 highlighter.tweenDuration = 1; highlighter.tweenRepeatCount = -1; //闪烁次数 highlighter.tween = true; highlighter.tweenGradient.SetKeys(new GradientColorKey[] { new GradientColorKey { color=new Color(0,0.6581135f,0.9264706f),time=0.5f}, new GradientColorKey { color=new Color(0.5724139f,0,1),time=1f}}, new GradientAlphaKey[] {new GradientAlphaKey{alpha=255}, new GradientAlphaKey{alpha=255,time=1.5f} });
标签:GradientAlphaKey,高亮,highlighter,Color,GradientColorKey,Unity,设置,time,new From: https://www.cnblogs.com/zqiang0803/p/18066709