NGUI v2.0 Tweening_2:TweenColor 颜色间补类

本文介绍TweenColor类的使用方法,该类用于在游戏中渐变对象的颜色。文章详细解释了如何通过TweenColor.Begin静态方法启动渐变操作,并提供了OnUpdate方法的说明,帮助读者了解如何更新对象的颜色。

TweenColor

 

 

TweenColor Class Reference
TweenColor类引用

Tween the object's color. More...

渐变对象的颜色。更多…

Inheritance diagram for TweenColor:
继承关系图TweenColor:
 

List of all members.

Static Public Member Functions静态公共成员函数

static TweenColor Begin (GameObject go, floatduration, Color color)
 Start the tweening operation. 
静态公共成员函数

Public Attributes公共属性

Color from = Color.white
Color to = Color.white

Protected Member Functions保护成员函数

override void OnUpdate (float factor)
 Interpolate and update the color. 
插入和更新的颜色。

Properties属性

Color color [get, set]
 Current color. 
当前颜色。

Detailed Description详细描述

Tween the object's color. 中间对象的颜色。


Member Function Documentation成员函数文档

static TweenColor TweenColor.Begin(GameObject go,
  float duration,
  Color color 
 ) [static]

Start the tweening operation. 启动渐变操作。

override void TweenColor.OnUpdate(float factor)[protected, virtual]

Interpolate and update the color. 插入和更新的颜色。

Implements UITweener.实现 UITweener。


Property Documentation属性文档

Color TweenColor.color [get, set]

Current color. 当前颜色。


The documentation for this class was generated from the following file:这个类从以下文档生成
  • Assets/NGUI/Scripts/Tweening/TweenColor.cs
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值