Transition
Namespace:FairyGUI
Source:Assets/Scripts/UI/Transition.cs (line 21)
public class Transition : ITweenListener
Interfaces:ITweenListener
Constructors
Transition(GComponent)
public Transition(GComponent owner);
| Parameter | Type | Description |
|---|---|---|
owner | GComponent |
Source:UI/Transition.cs (line 60)
Fields
invalidateBatchingEveryFrame
public bool invalidateBatchingEveryFrame;
当你启动了自动合批,动效里有涉及到XY、大小、旋转等的改变,如果你观察到元件的显示深度在播放过程中有错误,可以开启这个选项。
Source:UI/Transition.cs (line 31)
Methods
ChangePlayTimes(int)
public void ChangePlayTimes(int value);
| Parameter | Type | Description |
|---|---|---|
value | int |
Source:UI/Transition.cs (line 144)
ClearHooks()
public void ClearHooks();
Source:UI/Transition.cs (line 565)
Dispose()
public void Dispose();
Source:UI/Transition.cs (line 371)
GetLabelTime(string)
public float GetLabelTime(string label);
| Parameter | Type | Description |
|---|---|---|
label | string |
Source:UI/Transition.cs (line 636)
OnTweenComplete(GTweener)
public void OnTweenComplete(GTweener tweener);
| Parameter | Type | Description |
|---|---|---|
tweener | GTweener |
Source:UI/Transition.cs (line 1154)
OnTweenStart(GTweener)
public void OnTweenStart(GTweener tweener);
| Parameter | Type | Description |
|---|---|---|
tweener | GTweener |
Source:UI/Transition.cs (line 1037)
OnTweenUpdate(GTweener)
public void OnTweenUpdate(GTweener tweener);
| Parameter | Type | Description |
|---|---|---|
tweener | GTweener |
Source:UI/Transition.cs (line 1117)
Play()
public void Play();
Source:UI/Transition.cs (line 74)
Play(PlayCompleteCallback)
public void Play(PlayCompleteCallback onComplete);
| Parameter | Type | Description |
|---|---|---|
onComplete | PlayCompleteCallback |
Source:UI/Transition.cs (line 83)
Play(int, float, PlayCompleteCallback)
public void Play(int times, float delay, PlayCompleteCallback onComplete);
| Parameter | Type | Description |
|---|---|---|
times | int | |
delay | float | |
onComplete | PlayCompleteCallback |
Source:UI/Transition.cs (line 94)
Play(int, float, float, float, PlayCompleteCallback)
public void Play(int times, float delay, float startTime, float endTime, PlayCompleteCallback onComplete);
| Parameter | Type | Description |
|---|---|---|
times | int | |
delay | float | |
startTime | float | |
endTime | float | |
onComplete | PlayCompleteCallback |
Source:UI/Transition.cs (line 107)
PlayReverse()
public void PlayReverse();
Source:UI/Transition.cs (line 115)
PlayReverse(PlayCompleteCallback)
public void PlayReverse(PlayCompleteCallback onComplete);
| Parameter | Type | Description |
|---|---|---|
onComplete | PlayCompleteCallback |
Source:UI/Transition.cs (line 124)
PlayReverse(int, float, PlayCompleteCallback)
public void PlayReverse(int times, float delay, PlayCompleteCallback onComplete);
| Parameter | Type | Description |
|---|---|---|
times | int | |
delay | float | |
onComplete | PlayCompleteCallback |
Source:UI/Transition.cs (line 135)
SetAutoPlay(bool, int, float)
public void SetAutoPlay(bool autoPlay, int times, float delay);
设置动效是否自动播放。
| Parameter | Type | Description |
|---|---|---|
autoPlay | bool | |
times | int | |
delay | float |
Source:UI/Transition.cs (line 155)
SetDuration(string, float)
public void SetDuration(string label, float value);
| Parameter | Type | Description |
|---|---|---|
label | string | |
value | float |
Source:UI/Transition.cs (line 613)
SetHook(string, TransitionHook)
public void SetHook(string label, TransitionHook callback);
| Parameter | Type | Description |
|---|---|---|
label | string | |
callback | TransitionHook |
Source:UI/Transition.cs (line 538)
SetPaused(bool)
public void SetPaused(bool paused);
| Parameter | Type | Description |
|---|---|---|
paused | bool |
Source:UI/Transition.cs (line 333)
SetTarget(string, GObject)
public void SetTarget(string label, GObject newTarget);
| Parameter | Type | Description |
|---|---|---|
label | string | |
newTarget | GObject |
Source:UI/Transition.cs (line 582)
SetValue(string, object[])
public void SetValue(string label, params object[] aParams);
| Parameter | Type | Description |
|---|---|---|
label | string | |
aParams | object[] |
Source:UI/Transition.cs (line 417)
Setup(ByteBuffer)
public void Setup(ByteBuffer buffer);
| Parameter | Type | Description |
|---|---|---|
buffer | ByteBuffer |
Source:UI/Transition.cs (line 1418)
Stop()
public void Stop();
Source:UI/Transition.cs (line 246)
Stop(bool, bool)
public void Stop(bool setToComplete, bool processCallback);
| Parameter | Type | Description |
|---|---|---|
setToComplete | bool | |
processCallback | bool |
Source:UI/Transition.cs (line 256)
Properties
ignoreEngineTimeScale
public bool ignoreEngineTimeScale { get; set; }
Source:UI/Transition.cs (line 687)
name
public string name { get; private set; }
动效的名称。在编辑器里设定。
Source:UI/Transition.cs (line 26)
playing
public bool playing { get; }
Source:UI/Transition.cs (line 399)
timeScale
public float timeScale { get; set; }
Source:UI/Transition.cs (line 654)
totalDuration
public float totalDuration { get; }
transition's total duration, maybe zero when the transition only has one frame
Source:UI/Transition.cs (line 407)