Skip to main content

Transition

Namespace:FairyGUI
Source:Assets/Scripts/UI/Transition.cs (line 21)

public class Transition : ITweenListener

Interfaces:ITweenListener

Constructors​

Transition(GComponent)​

public Transition(GComponent owner);
ParameterTypeDescription
ownerGComponent

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);
ParameterTypeDescription
valueint

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);
ParameterTypeDescription
labelstring

Source:UI/Transition.cs (line 636)

OnTweenComplete(GTweener)​

public void OnTweenComplete(GTweener tweener);
ParameterTypeDescription
tweenerGTweener

Source:UI/Transition.cs (line 1154)

OnTweenStart(GTweener)​

public void OnTweenStart(GTweener tweener);
ParameterTypeDescription
tweenerGTweener

Source:UI/Transition.cs (line 1037)

OnTweenUpdate(GTweener)​

public void OnTweenUpdate(GTweener tweener);
ParameterTypeDescription
tweenerGTweener

Source:UI/Transition.cs (line 1117)

Play()​

public void Play();

Source:UI/Transition.cs (line 74)

Play(PlayCompleteCallback)​

public void Play(PlayCompleteCallback onComplete);
ParameterTypeDescription
onCompletePlayCompleteCallback

Source:UI/Transition.cs (line 83)

Play(int, float, PlayCompleteCallback)​

public void Play(int times, float delay, PlayCompleteCallback onComplete);
ParameterTypeDescription
timesint
delayfloat
onCompletePlayCompleteCallback

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);
ParameterTypeDescription
timesint
delayfloat
startTimefloat
endTimefloat
onCompletePlayCompleteCallback

Source:UI/Transition.cs (line 107)

PlayReverse()​

public void PlayReverse();

Source:UI/Transition.cs (line 115)

PlayReverse(PlayCompleteCallback)​

public void PlayReverse(PlayCompleteCallback onComplete);
ParameterTypeDescription
onCompletePlayCompleteCallback

Source:UI/Transition.cs (line 124)

PlayReverse(int, float, PlayCompleteCallback)​

public void PlayReverse(int times, float delay, PlayCompleteCallback onComplete);
ParameterTypeDescription
timesint
delayfloat
onCompletePlayCompleteCallback

Source:UI/Transition.cs (line 135)

SetAutoPlay(bool, int, float)​

public void SetAutoPlay(bool autoPlay, int times, float delay);

设置动效是否自动播放。

ParameterTypeDescription
autoPlaybool
timesint
delayfloat

Source:UI/Transition.cs (line 155)

SetDuration(string, float)​

public void SetDuration(string label, float value);
ParameterTypeDescription
labelstring
valuefloat

Source:UI/Transition.cs (line 613)

SetHook(string, TransitionHook)​

public void SetHook(string label, TransitionHook callback);
ParameterTypeDescription
labelstring
callbackTransitionHook

Source:UI/Transition.cs (line 538)

SetPaused(bool)​

public void SetPaused(bool paused);
ParameterTypeDescription
pausedbool

Source:UI/Transition.cs (line 333)

SetTarget(string, GObject)​

public void SetTarget(string label, GObject newTarget);
ParameterTypeDescription
labelstring
newTargetGObject

Source:UI/Transition.cs (line 582)

SetValue(string, object[])​

public void SetValue(string label, params object[] aParams);
ParameterTypeDescription
labelstring
aParamsobject[]

Source:UI/Transition.cs (line 417)

Setup(ByteBuffer)​

public void Setup(ByteBuffer buffer);
ParameterTypeDescription
bufferByteBuffer

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);
ParameterTypeDescription
setToCompletebool
processCallbackbool

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)