NGUI v2.0 Tweening_7:UITweener UI间补类

来源:互联网 发布:秦国 知乎 编辑:程序博客网 时间:2024/06/05 01:09

UITweener

 

 

UITweener Class Reference
UITweener类引用

Base class for all tweening operations. More...

基类,用于所有中间计算操作。更多…

Inheritance diagram for UITweener:
继承关系图UITweener:
 
 
List of all members.

Public Types公共类型

enum  Methodenum  Style

Public Member Functions公共类型

void Play (bool forward) Manually activate the tweening process, reversing it if necessary.
手动激活渐变过程,如有必要  可逆转。void Animate (bool forward)void Reset () Manually reset the tweener's state to the beginning. 
手动重置tweener的起始状态。void Toggle () Manually start the tweening process, reversing its direction.
手动启动渐变过程,扭转方向。

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

static T Begin< T > (GameObject go, floatduration) Starts the tweening operation. 
启动渐变操作。

Public Attributes公共属性

Method method = Method.Linear Tweening method used.
使用渐变的方法。
Style style = Style.Once Does it play once? Does it loop? 
是在播放一次?循环吗?float duration = 1f How long is the duration of the tween? 
中间的期限是多长?int tweenGroup = 0 Used by buttons and tween sequences. Group of '0' means not in a sequence.
被按钮和中间序列使用。  ‘0’组并不意味着在一个序列。GameObject eventReceiver Target used with 'callWhenFinished', or this game object if none was specified.
目标使用“callWhenFinished’标志    ,或者是这个游戏对象(如果没有指定)。string callWhenFinished Name of the function to call when the tween finishes. 
中间过程完成后要调用的函数名。

Protected Member Functions保护成员函数

abstract void OnUpdate (float factor) Actual tweening logic should go here. 
实际的渐变逻辑应该去这里。

Properties属性

float amountPerDelta [get] Amount advanced per delta time. 
每个时间单位    增量的数量

Detailed Description详细描述

Base class for all tweening operations.

基类,用于所有中间计算操作。

Member Function Documentation成员函数文档

static T UITweener.Begin< T >(GameObject go,  float duration  ) [static]

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

Type Constraints 类型约束
T :UITweener 
abstract void UITweener.OnUpdate(float factor)[protected, pure virtual]

Actual tweening logic should go here. 实际的渐变逻辑应该去这里。

Implemented in TweenColor, TweenScale, TweenRotation, TweenPosition, and TweenTransform.

void UITweener.Play(bool forward

Manually activate the tweening process, reversing it if necessary. 手动激活渐变过程,如有必要 可进行逆转。

void UITweener.Reset( ) 

Manually reset the tweener's state to the beginning. 手动重置tweener的起始状态。

void UITweener.Toggle( ) 

Manually start the tweening process, reversing its direction. 手动启动渐变过程,扭转方向。


Member Data Documentation成员数据的文档

string UITweener.callWhenFinished

Name of the function to call when the tween finishes. 中间过程完成后要调用的函数名。

float UITweener.duration = 1f

How long is the duration of the tween? 中间的期限是多长?

GameObject UITweener.eventReceiver

Target used with 'callWhenFinished', or this game object if none was specified.(上面已有  以下省略)

Method UITweener.method = Method.Linear

Tweening method used.

Style UITweener.style = Style.Once

Does it play once? Does it loop?

int UITweener.tweenGroup = 0

Used by buttons and tween sequences. Group of '0' means not in a sequence.


Property Documentation

float UITweener.amountPerDelta [get]

Amount advanced per delta time.


The documentation for this class was generated from the following file:
  • Assets/NGUI/Scripts/Tweening/UITweener.cs
原创粉丝点击