RaTweening 1.0.0
|
The Processor can be used to manually handle the states of tweens which have been registered to it. It completely handles all the state related logics such as handling their delays, lifetime, evaluations and all other state related aspects. This system is used by RaTweeningEngine and RaTweenSequence to handle their internal tweens.
More...Note: By Default, a tween runs in RealTime. To change it to GameTime, call RaTweenUtilExtensions.SetToGameTime<TweenT>(TweenT) on that tween.
Public Member Functions | |
void | Stop (bool cleanEndedTweens=true) |
Ends all tweens within the processor More... | |
void | Rewind (bool inclDelay=true) |
Rewinds all tweens within the processor. More... | |
void | Reset (bool resumeAfterReset=false) |
Resets all tweens within the processor. More... | |
void | Complete (bool cleanEndedTweens=true) |
Completes all tweens within the processor
| |
void | Step (float deltaTime, bool cleanEndedTweens=true) |
This method progresses the tweens registered through their various states. Handling their delays, lifetime, evaluations and all other state related aspects. More... | |
void | CleanEndedTweens () |
Kills all Tweens which RaTweenBase.HasEnded | |
void | Dispose () |
TweenT | RegisterTween< TweenT > (TweenT tween) |
This method attempts to register the given tween in the system, setting the tween state to RaTweenBase.State.ToStart After Registration, the tween will go through the processing flow by calling the Step method. More... | |
TweenT | UnregisterTween< TweenT > (TweenT tween) |
This method attempts to unregister the given tween from the system. After Unregistration, the tween will no longer go through the processing flow by calling the Step method. More... | |
Properties | |
int | TweensCount [get] |
The Processor can be used to manually handle the states of tweens which have been registered to it. It completely handles all the state related logics such as handling their delays, lifetime, evaluations and all other state related aspects. This system is used by RaTweeningEngine and RaTweenSequence to handle their internal tweens.
Note: By Default, a tween runs in RealTime. To change it to GameTime, call RaTweenUtilExtensions.SetToGameTime<TweenT>(TweenT) on that tween.
TweenT RaTweening.Core.RaTweeningProcessor.RegisterTween< TweenT > | ( | TweenT | tween | ) |
This method attempts to register the given tween in the system, setting the tween state to RaTweenBase.State.ToStart After Registration, the tween will go through the processing flow by calling the Step method.
Note: Registration is only allowed if the state of the tween is RaTweenBase.State.None, else it will ignore it.
TweenT | : | RaTweenBase |
void RaTweening.Core.RaTweeningProcessor.Reset | ( | bool | resumeAfterReset = false | ) |
Resets all tweens within the processor.
Note: See RaTweenBase.Reset(bool)
resumeAfterReset | When True, this will unpause the tween immediately after Reset |
void RaTweening.Core.RaTweeningProcessor.Rewind | ( | bool | inclDelay = true | ) |
Rewinds all tweens within the processor.
Note: See RaTweenBase.Rewind(bool)
inclDelay | Also rewinds the Delay, else it only rewinds the evaluation time |
void RaTweening.Core.RaTweeningProcessor.Step | ( | float | deltaTime, |
bool | cleanEndedTweens = true |
||
) |
This method progresses the tweens registered through their various states. Handling their delays, lifetime, evaluations and all other state related aspects.
deltaTime | Time to progres the registered tweens with |
cleanEndedTweens | on True, calls CleanEndedTweens at end of step |
void RaTweening.Core.RaTweeningProcessor.Stop | ( | bool | cleanEndedTweens = true | ) |
TweenT RaTweening.Core.RaTweeningProcessor.UnregisterTween< TweenT > | ( | TweenT | tween | ) |
This method attempts to unregister the given tween from the system. After Unregistration, the tween will no longer go through the processing flow by calling the Step method.
Note: Unregistration is only allowed if the state of the tween is NOT RaTweenBase.State.None, else it will ignore it.
TweenT | : | RaTweenBase |