Documentation.md
January 14, 2026 · View on GitHub
Overview v2.0.0
TweenManager – Controls state switching and step updating for all Tween instances.
Tween – Controls the state and updates of all its TweenActions. It supports both sequential and concurrent execution modes. For example: Methods with the Append prefix add queue actions, while those with the Add prefix add concurrent actions.
Tween constructs a sequence timeline and fills it with various types of TweenActions to achieve the orderly execution of queue actions and concurrent actions.
TweenExtensions – Extends the functionality of Tween, demonstrating how to use existing interfaces to customize Tween's implementation.
TweenAction – Controls a group of TweenActionValues. These action values execute concurrently to drive the progressive realization of a complete action.
TweenActionExtensions – Extends the functionality of TweenAction. Since TweenAction needs to be bound to a Tween to execute, this extension provides a default binding to a Tween, allowing TweenAction to be executed directly.
TweenActionAPIExtensions – Extends the functionality of Unity Objects, enabling them to directly create and use TweenActions.
TweenAction can be created manually, but TweenActionAPIExtensions provides extensive property extensions for many Unity Objects, so typically manual creation is not required.
For example, for a Transform, you can directly call a series of methods prefixed with Action to create a TweenAction, similar to:
transform.ActionMoveX(float x, float duration)
TweenActionValue – Controls the initialization, start, and end of an object's property value, using easing functions to drive the value change.
TweenEase – Controls the routing and implementation of easing functions.
Tween and TweenAction, along with their extensions, all support chained calls to set various properties, such as: ease, isRelative, callback, etc.
The detailed structural relationships of the core MojoTween classes can be viewed in the Code Architecture.
Feature List
Below are the methods and functions of the core classes. Expanding each section reveals usage instructions and examples.
- Tween
- TweenExtensions
- TweenAction
- TweenActionExtensions
- TweenActionAPIExtensions
- Transform Move
- Transform Local Move
- Transform Scale
- Transform Rotate
- Transform Local Rotate
- Transform Rotate And Move
- Transform Local Rotate And Move
- Transform Shake Position
- Transform Shake Scale
- Transform Shake Rotation
- Transform Bezier Quadratic Move
- Transform Bezier Quadratic Local Move
- Transform Bezier Cubic Move
- Transform Bezier Cubic Local Move
- RectTransform Move
- RectTransform OffsetMax
- RectTransform OffsetMin
- RectTransform SizeDelta
- RectTransform Size
- Graphic Color
- CanvasGroup Color
- CanvasRenderer Color
- SpriteRenderer Color
- AudioSource Volume
- Material Values
- Scrollbar Value
- TweenManager
Tween
Create Tween
-
static Tween Create(bool isRecyclable = true)Creates a Tween.
If
[isRecyclable]istrue, theTweenwill be automatically recycled upon completion — in this case, you don't need to keep a reference to aTweenfor reuse, but can always create a new one.If
[isRecyclable]isfalse, theTweenrequires callingSetRecyclablefor manual recycling — in this case, theTweencan useRestartandRewind.// Will be automatically recycled var tween = Tween.Create(); // Requires manual recycling var tween = Tween.Create(false); // Manual recycling method tween.SetRecyclable(true);
-
static Tween PlayDelayCallback(float delay, Action Callback)Creates a
Tweenthat executes a delayed callback function.Tween.PlayDelayCallback(1.0f, MyDelayCallbackAction);
Append
-
Tween Append(TweenAction action)Appends a
TweenActionto the action queue. TheTweenwill execute queue actions one after another.Tween.Create() .Append(MyQueueTweenAction1) .Append(MyQueueTweenAction2) .Play();
-
Tween AppendInterval(float interval)Appends a time interval to the action queue, creating a delay between two actions in the
Tweenqueue.Tween.Create() .AppendInterval(0.8f) .Append(MyQueueTweenAction1) .AppendInterval(1.5f) .Append(MyQueueTweenAction2) .Play();
-
Tween AppendCallback(Action Callback)Appends a callback function to the action queue. When execution reaches this point in the queue, the callback function will be executed.
Tween.Create() .AppendInterval(0.8f) .AppendCallback(MyQueueCallbackAction1) .AppendInterval(1.5f) .AppendCallback(MyQueueCallbackAction2) .Play();
-
Tween AppendIntervalCallback(float interval, Action Callback)Appends a callback function with a time interval to the action queue. The queue will execute the callback after the specified delay.
Tween.Create() .Append(MyQueueTweenAction1) .AppendIntervalCallback(0.7f, MyQueueCallbackAction2) .Play();
Add
-
Tween Add(TweenAction action)Adds a
TweenActionto the concurrent actions of theTween. These actions will execute simultaneously.Tween.Create() .Add(MyConcurrentTweenAction1) .Add(MyConcurrentTweenAction2) .Play();
Add Delay
-
Tween AddDelay(float delay, TweenAction action)Adds a delayed
TweenActionto the concurrent actions. This action will start after a specified delay.Tween.Create() .AddDelay(0.0f, MyConcurrentTweenAction1) .AddDelay(0.2f, MyConcurrentTweenAction2) .AddDelay(0.4f, MyConcurrentTweenAction3) .Play();
-
Tween AddDelayAfterAppend(float delay, TweenAction action)Adds a delayed
TweenActionto the concurrent actions. Its execution order is after the lastAppendaction.Tween.Create() .Append(MyQueueTweenAction1) .AddDelayAfterAppend(0.2f, MyConcurrentTweenAction1) .Play();
-
Tween AddDelayAfterAdd(float delay, TweenAction action)Adds a delayed
TweenActionto the concurrent actions. Its execution order is after the lastAddaction.Tween.Create() .Add(MyConcurrentTweenAction1) .AddDelayAfterAdd(0.2f, MyConcurrentTweenAction2) .Play();
Add After
-
Tween AddAfterAppend(TweenAction action)Adds a
TweenActionto the concurrent actions. Its execution order is after the lastAppendaction.Tween.Create() .Append(MyQueueTweenAction1) .AddAfterAppend(MyConcurrentTweenAction1) .Play();
-
Tween AddAfterAdd(TweenAction action)Adds a
TweenActionto the concurrent actions. Its execution order is after the lastAddaction.Tween.Create() .Add(MyConcurrentTweenAction1) .AddAfterAdd(MyConcurrentTweenAction2) .AddAfterAdd(MyConcurrentTweenAction3) .Play();
Add Callback
-
Tween AddCallback(Action Callback)Adds a callback function to the concurrent actions.
Tween.Create() .AddCallback(MyConcurrentCallbackAction1) .AddCallback(MyConcurrentCallbackAction2) .Play();
-
Tween AddCallbackAfterAppend(Action Callback)Adds a callback function to the concurrent actions. Its execution order is after the last
Appendaction.Tween.Create() .AppendCallback(MyQueueCallbackAction1) .AddCallbackAfterAppend(MyConcurrentCallbackAction1) .AppendCallback(MyQueueCallbackAction2) .AddCallbackAfterAppend(MyConcurrentCallbackAction2) .Play();
-
Tween AddCallbackAfterAdd(Action Callback)Adds a callback function to the concurrent actions. Its execution order is after the last
Addaction.Tween.Create() .AddCallback(MyConcurrentCallbackAction1) .AddCallbackAfterAdd(MyConcurrentCallbackAction2) .AddCallbackAfterAdd(MyConcurrentCallbackAction3) .Play();
Add Delay Callback
-
Tween AddDelayCallback(float delay, Action Callback)Adds a delayed callback function to the concurrent actions.
Tween.Create() .AddDelayCallback(1.0f, MyConcurrentCallbackAction1) .AddDelayCallback(2.8f, MyConcurrentCallbackAction2) .AddDelayCallback(3.0f, MyConcurrentCallbackAction3) .Play();
-
Tween AddDelayCallbackAfterAppend(float delay, Action Callback)Adds a delayed callback function to the concurrent actions. Its execution order is after the last
Appendaction.Tween.Create() .Append(MyQueueTweenAction1) .AddDelayCallbackAfterAppend(1.0f, MyConcurrentCallbackAction1) .Play();
-
Tween AddDelayCallbackAfterAdd(float delay, Action Callback)Adds a delayed callback function to the concurrent actions. Its execution order is after the last
Addaction.Tween.Create() .Add(MyConcurrentTweenAction1) .AddDelayCallbackAfterAdd(1.0f, MyConcurrentCallbackAction1) .Play();
Tween On Callback
-
Tween SetOnStart(Action OnStart)Sets the callback function for when the
Tweenstarts. Called when both playing and rewinding start.Tween.Create().SetOnStart(MyStartAction);
-
Tween SetOnUpdate(Action<float> OnUpdate)Sets the callback function for when the
Tweenupdates. Called when both playing and rewinding update. The callback parameterfloatranges from[0.0f, 1.0f], corresponding to theTween's progress from start to end.Tween.Create().SetOnUpdate(MyUpdateAction);
-
Tween SetOnComplete(Action OnComplete)Sets the callback function for when the
Tweencompletes. Called when both playing and rewinding complete.Tween.Create().SetOnComplete(MyCompleteAction);
-
Tween SetOnStop(Action OnStop)Sets the callback function for when the
Tweenstops. Called when both playing and rewinding stop.Tween.Create().SetOnStop(MyStopAction);
-
Tween SetOnRecycle(Action OnRecycle)Sets the callback function for when the
Tweenis recycled. You can use this function to clear data bound to theTween.Tween.Create().SetOnRecycle(MyRecycleAction);
Set Default Properties
-
Tween SetDefaultEase(TweenEase ease)Sets the default
[ease]forTweenActionswhen they are added. Default isSmooth. OnlyTweenActionsthat have not already set their[ease](i.e., notSmooth) will use theTween's default.Tween.Create().SetDefaultEase(TweenEase.ExponentialOut);
-
Tween SetDefaultRelative(bool isRelative)Sets the default
[isRelative]forTweenActionswhen they are added. Default isfalse. OnlyTweenActionsthat have not already set their[isRelative](i.e., notfalse) will use theTween's default.Tween.Create().SetDefaultRelative(true);
Controls
-
Tween SetRecyclable(bool isRecyclable)Sets whether the
Tweenis recyclable. Iftrue, theTweenwill be recycled directly when its state isSetup,Stopped, orCompleted. Otherwise, it will be recycled after stopping or completion.
-
Tween Play()Starts playing the
Tween. If theTweenis rewinding, or was previously rewinding, it will reverse to playing. If theTweenhas completed or stopped, it will restart playing.
-
Tween Rewind()Starts rewinding the
Tween. If theTweenis playing, or was previously playing, it will reverse to rewinding. If theTweenhas completed or stopped, it will restart rewinding.
-
Tween Restart()Restarts the
Tween's play or rewind. If theTweenis playing, or was previously playing, it will restart playing. If theTweenis rewinding, or was previously rewinding, it will restart rewinding. If theTweenhas completed, it will restart based on its previous state (play or rewind).
-
Tween GotoStart()Directly jumps to the start of the
Tween's play or rewind. TheTween's state remains unchanged, only its position changes.
-
Tween GotoEnd()Directly jumps to the end of the
Tween's play or rewind. TheTweenenters the completed state.
-
Tween Reverse()Reverses the
Tween's running direction. If playing, switches to rewind; if rewinding, switches to play; if not running, reverses the previous play or rewind direction.
-
void Pause(bool isPause)Pauses or resumes a playing or rewinding
Tween.
-
Tween Stop()Stops the
Tweenfrom running. If theTweenis recyclable, it will be recycled after stopping.
Test States
-
bool IsSetup()Is the
Tween's stateSetup?
-
bool IsPlaying()Is the
Tween's statePlaying?
-
bool IsRewinding()Is the
Tween's stateRewinding?
-
bool IsRunning()Is the
Tween's statePlayingorRewinding?
-
bool IsPaused()Is the
Tween's statePaused?
-
bool IsStopping()Is the
Tween's stateStopping?
-
bool IsCompleting()Is the
Tween's stateCompleting?
-
bool IsStopped()Is the
Tween's stateStopped?
-
bool IsStoppedDuringPlay()Is the
Tween's stateStoppedduring play?
-
bool IsStoppedDuringRewind()Is the
Tween's stateStoppedduring rewind?
-
bool IsCompleted()Is the
Tween's stateCompleted?
-
bool IsCompletedAfterPlay()Is the
Tween's stateCompletedafter play?
-
bool IsCompletedAfterRewind()Is the
Tween's stateCompletedafter rewind?
-
bool IsRecycled()Is the
Tween's stateRecycled?
-
bool IsOPRestart()Is the
Tween's operation stateRestart? This operation is instantaneous, involving only state switching and executing relevant callback functions. Therefore, you can use this check within those callbacks to determine the current operation state.
-
bool IsOPGotoStart()Is the
Tween's operation stateGotoStart? This operation is instantaneous, involving only state switching and executing relevant callback functions. Therefore, you can use this check within those callbacks to determine the current operation state.
-
bool IsOPGotoEnd()Is the
Tween's operation stateGotoEnd? This operation is instantaneous, involving only state switching and executing relevant callback functions. Therefore, you can use this check within those callbacks to determine the current operation state.
TweenExtensions
-
void TogglePause()Toggles the
Tweenbetween playing/rewinding and pausing.
-
Tween SetOnStartForPlay(Action OnStartForPlay)Sets the callback function for when the
Tweenstarts playing.
-
Tween SetOnStartForRewind(Action OnStartForRewind)Sets the callback function for when the
Tweenstarts rewinding.
-
Tween SetOnStopForPlay(Action OnStopForPlay)Sets the callback function for when the
Tweenstops playing.
-
Tween SetOnStopForRewind(Action OnStopForRewind)Sets the callback function for when the
Tweenstops rewinding.
-
Tween SetOnCompleteForPlay(Action OnCompleteForPlay)Sets the callback function for when the
Tweencompletes playing.
-
Tween SetOnCompleteForRewind(Action OnCompleteForRewind)Sets the callback function for when the
Tweencompletes rewinding.
-
Tween SetLoops(int loops, bool isRewindToStart = false, Action OnCompleteAllLoops = null)Sets the number of times the
Tweenrepeats playback. Repeated calls will increase the playback and callback count.[loops]: The number of loops.-1means infinite loops.[isRewindToStart]: When a loop completes, whether to rewind to the start before playing again. Iffalse, it willRestartdirectly.[OnCompleteAllLoops]: Callback function executed when all loops are complete.tween.SetLoops(1) .SetLoops(2, true, () => tween.Rewind().SetOnComplete(() => tween.SetRecyclable(true))) .Play();
TweenAction
Create Action
-
static TweenAction CreateFloat(Func<float> OnGetTargetFloat, Action<float> OnSetTargetFloat, float finalValue, float duration)Creates a
TweenActionthat tweens a target object's property value to afloatvalue.TweenAction.CreateFloat ( () => transform.position.x, (value) => transform.SetPositionX(value), toFloatX, duration );
-
static TweenAction CreateVector2(OnGetTargetVector2 OnGetTargetVector2, OnSetTargetVector2 OnSetTargetVector2, in Vector2 finalValues, float duration)Creates a
TweenActionthat tweens a target object's property value to avector2value.TweenAction.CreateVector2 ( (out Vector2 vector2) => vector2 = transform.position, (in Vector2 vector2) => transform.SetPositionXY(vector2), toV2, duration );
-
static TweenAction CreateVector3(OnGetTargetVector3 OnGetTargetVector3, OnSetTargetVector3 OnSetTargetVector3, in Vector3 finalValues, float duration)Creates a
TweenActionthat tweens a target object's property value to avector3value.TweenAction.CreateVector3 ( (out Vector3 vector3) => vector3 = transform.position, (in Vector3 vector3) => transform.position = vector3, toV3, duration );
-
static TweenAction CreateVector4(OnGetTargetVector4 OnGetTargetVector4, OnSetTargetVector4 OnSetTargetVector4, in Vector4 finalValues, float duration)Creates a
TweenActionthat tweens a target object's property value to avector4value.TweenAction.CreateVector4 ( (out Vector4 vector4) => vector4 = graphic.color, (in Vector4 vector4) => graphic.color = vector4, toColor, duration );
Action On Callback
-
TweenAction SetOnStart(Action OnStart)Sets the callback function for when the
TweenActionstarts. Called when both playing and rewinding start.
-
TweenAction SetOnUpdate(Action<float> OnUpdate)Sets the callback function for when the
TweenActionupdates. Called when both playing and rewinding update. The callback parameterfloatranges from[0.0f, 1.0f], corresponding to theTweenAction's progress from start to end.
-
TweenAction SetOnComplete(Action OnComplete)Sets the callback function for when the
TweenActioncompletes. Called when both playing and rewinding complete.
Set Properties
-
TweenAction SetRelative(bool isRelative)Sets the
[isRelative]for allTweenActionValues. Default isfalse.
-
TweenAction SetRelativeAt(int index, bool isRelative)Sets the
[isRelative]for theTweenActionValueat position[index]. Default isfalse.The prefix methods
Vector2/Vector3/Vector4for creatingTweenActioncorrespond to containing2/3/4TweenActionValues. This allows you to set properties for a specificTweenActionValue.
-
TweenAction SetEase(TweenEase ease)Sets the
[ease]for allTweenActionValues. Default isSmooth.
-
TweenAction SetEaseAt(int index, TweenEase ease)Sets the
[ease]for theTweenActionValueat position[index]. Default isSmooth.The prefix methods
Vector2/Vector3/Vector4for creatingTweenActioncorrespond to containing2/3/4TweenActionValues. This allows you to set properties for a specificTweenActionValue.
-
TweenAction SetExtraParams(params float[] extraParams)Sets a group of extra parameters
[extraParams]forTweenEaseto use.TweenAction.CreateFloat(...) .SetRelative(true) .SetEase(TweenEase.ShakeX) .SetExtraParams(amplitude, speed);
TweenActionExtensions
-
Tween Play()Plays the
TweenAction. Creates aTweento include the current action and returns thisTween.audioSource.ActionVolumeTo(toValue, duration).Play();
-
Tween PlayDelay(float delay)Plays a delayed
TweenAction. Creates aTweento include the current action and returns thisTween.
TweenActionAPIExtensions
Note: Overloads of the same method are combined into one, using / to separate overload parameters, and [] to wrap overloadable parameters. That is, [] contains parameters for different overloads separated by /.
Transform Move
-
TweenAction ActionMoveX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat movesTransform position xto[x]. Creates aTweenActionthat movesTransform position yto[y]. Creates aTweenActionthat movesTransform position zto[z].
-
TweenAction ActionMoveXY([in Vector2 v2/float x, float y/Transform final], float duration)Creates a
TweenActionthat movesTransform position xyto[v2]. Creates aTweenActionthat movesTransform position xyto[xy]. Creates aTweenActionthat movesTransform position xyto[final].
-
TweenAction ActionMoveXZ([in Vector2 v2/float x, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform position xzto[v2]. Creates aTweenActionthat movesTransform position xzto[xz]. Creates aTweenActionthat movesTransform position xzto[final].
-
TweenAction ActionMoveYZ([in Vector2 v2/float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform position yzto[v2]. Creates aTweenActionthat movesTransform position yzto[yz]. Creates aTweenActionthat movesTransform position yzto[final].
-
TweenAction ActionMove([in Vector3 v3/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform positionto[v3]. Creates aTweenActionthat movesTransform positionto[xyz]. Creates aTweenActionthat movesTransform positionto[final].
Transform Local Move
-
TweenAction ActionLocalMoveX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat movesTransform localPosition xto[x]. Creates aTweenActionthat movesTransform localPosition yto[y]. Creates aTweenActionthat movesTransform localPosition zto[z].
-
TweenAction ActionLocalMoveXY([in Vector2 v2/float x, float y/Transform final], float duration)Creates a
TweenActionthat movesTransform localPosition xyto[v2]. Creates aTweenActionthat movesTransform localPosition xyto[xy]. Creates aTweenActionthat movesTransform localPosition xyto[final].
-
TweenAction ActionLocalMoveXZ([in Vector2 v2/float x, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform localPosition xzto[v2]. Creates aTweenActionthat movesTransform localPosition xzto[xz]. Creates aTweenActionthat movesTransform localPosition xzto[final].
-
TweenAction ActionLocalMoveYZ([in Vector2 v2/float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform localPosition yzto[v2]. Creates aTweenActionthat movesTransform localPosition yzto[yz]. Creates aTweenActionthat movesTransform localPosition yzto[final].
-
TweenAction ActionLocalMove([in Vector3 v3/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform localPositionto[v3]. Creates aTweenActionthat movesTransform localPositionto[xyz]. Creates aTweenActionthat movesTransform localPositionto[final].
Transform Scale
-
TweenAction ActionScaleX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat scalesTransform localScale xto[x]. Creates aTweenActionthat scalesTransform localScale yto[y]. Creates aTweenActionthat scalesTransform localScale zto[z].
-
TweenAction ActionScaleXY([in Vector2 v2/float x, float y/float value/Transform final], float duration)Creates a
TweenActionthat scalesTransform localScale xyto[v2]. Creates aTweenActionthat scalesTransform localScale xyto[xy]. Creates aTweenActionthat scalesTransform localScale xyto[value]. Creates aTweenActionthat scalesTransform localScale xyto[final].
-
TweenAction ActionScaleXZ([in Vector2 v2/float x, float z/float value/Transform final], float duration)Creates a
TweenActionthat scalesTransform localScale xzto[v2]. Creates aTweenActionthat scalesTransform localScale xzto[xz]. Creates aTweenActionthat scalesTransform localScale xzto[value]. Creates aTweenActionthat scalesTransform localScale xzto[final].
-
TweenAction ActionScaleYZ([in Vector2 v2/float y, float z/float value/Transform final], float duration)Creates a
TweenActionthat scalesTransform localScale yzto[v2]. Creates aTweenActionthat scalesTransform localScale yzto[yz]. Creates aTweenActionthat scalesTransform localScale yzto[value]. Creates aTweenActionthat scalesTransform localScale yzto[final].
-
TweenAction ActionScale([in Vector3 v3/float x, float y, float z/float value/Transform final], float duration)Creates a
TweenActionthat scalesTransform localScaleto[v3]. Creates aTweenActionthat scalesTransform localScaleto[xyz]. Creates aTweenActionthat scalesTransform localScaleto[value]. Creates aTweenActionthat scalesTransform localScaleto[final].
Transform Rotate
-
TweenAction ActionRotateX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat rotatesTransform eulerAngles xto[x]. Creates aTweenActionthat rotatesTransform eulerAngles yto[y]. Creates aTweenActionthat rotatesTransform eulerAngles zto[z].
-
TweenAction ActionRotateXY([in Vector2 v2/float x, float y/Transform final], float duration)Creates a
TweenActionthat rotatesTransform eulerAngles xyto[v2]. Creates aTweenActionthat rotatesTransform eulerAngles xyto[xy]. Creates aTweenActionthat rotatesTransform eulerAngles xyto[final].
-
TweenAction ActionRotateXZ([in Vector2 v2/float x, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform eulerAngles xzto[v2]. Creates aTweenActionthat rotatesTransform eulerAngles xzto[xz]. Creates aTweenActionthat rotatesTransform eulerAngles xzto[final].
-
TweenAction ActionRotateYZ([in Vector2 v2/float y, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform eulerAngles yzto[v2]. Creates aTweenActionthat rotatesTransform eulerAngles yzto[yz]. Creates aTweenActionthat rotatesTransform eulerAngles yzto[final].
-
TweenAction ActionRotate([in Vector3 v3/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform eulerAnglesto[v3]. Creates aTweenActionthat rotatesTransform eulerAnglesto[xyz]. Creates aTweenActionthat rotatesTransform eulerAnglesto[final].
Transform Local Rotate
-
TweenAction ActionLocalRotateX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat rotatesTransform localEulerAngles xto[x]. Creates aTweenActionthat rotatesTransform localEulerAngles yto[y]. Creates aTweenActionthat rotatesTransform localEulerAngles zto[z].
-
TweenAction ActionLocalRotateXY([in Vector2 v2/float x, float y/Transform final], float duration)Creates a
TweenActionthat rotatesTransform localEulerAngles xyto[v2]. Creates aTweenActionthat rotatesTransform localEulerAngles xyto[xy]. Creates aTweenActionthat rotatesTransform localEulerAngles xyto[final].
-
TweenAction ActionLocalRotateXZ([in Vector2 v2/float x, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform localEulerAngles xzto[v2]. Creates aTweenActionthat rotatesTransform localEulerAngles xzto[xz]. Creates aTweenActionthat rotatesTransform localEulerAngles xzto[final].
-
TweenAction ActionLocalRotateYZ([in Vector2 v2/float y, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform localEulerAngles yzto[v2]. Creates aTweenActionthat rotatesTransform localEulerAngles yzto[yz]. Creates aTweenActionthat rotatesTransform localEulerAngles yzto[final].
-
TweenAction ActionLocalRotate([in Vector3 v3/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat rotatesTransform localEulerAnglesto[v3]. Creates aTweenActionthat rotatesTransform localEulerAnglesto[xyz]. Creates aTweenActionthat rotatesTransform localEulerAnglesto[final].
Transform Rotate And Move
-
TweenAction ActionMoveXYAndRotateZ([in Vector3 v3/in Vector2 v2, float z/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform position xyto[v3.xy]and rotatesTransform eulerAngles zto[v3.z].Creates a
TweenActionthat movesTransform position xyto[v2]and rotatesTransform eulerAngles zto[z].Creates a
TweenActionthat movesTransform position xyto[xy]and rotatesTransform eulerAngles zto[z].Creates a
TweenActionthat movesTransform position xyto[final]and rotatesTransform eulerAngles zto[final].Optimized using
Transform's built-in methodsGetPositionAndRotationandSetPositionAndRotation.
-
TweenAction ActionMoveAndRotate([in Vector3 position, in Vector3 eulerAngles/Transform final], float duration)Creates a
TweenActionthat movesTransform positionto[position]and rotatesTransform eulerAnglesto[eulerAngles].Creates a
TweenActionthat movesTransform positionto[final]and rotatesTransform eulerAnglesto[final].Optimized using
Transform's built-in methodsGetPositionAndRotationandSetPositionAndRotation.
Transform Local Rotate And Move
-
TweenAction ActionLocalMoveXYAndRotateZ([in Vector3 v3/in Vector2 v2, float z/float x, float y, float z/Transform final], float duration)Creates a
TweenActionthat movesTransform localPosition xyto[v3.xy]and rotatesTransform localEulerAngles zto[v3.z].Creates a
TweenActionthat movesTransform localPosition xyto[v2]and rotatesTransform localEulerAngles zto[z].Creates a
TweenActionthat movesTransform localPosition xyto[xy]and rotatesTransform localEulerAngles zto[z].Creates a
TweenActionthat movesTransform localPosition xyto[final]and rotatesTransform localEulerAngles zto[final].Optimized using
Transform's built-in methodsGetPositionAndRotationandSetPositionAndRotation.
-
TweenAction ActionLocalMoveAndRotate([in Vector3 localPosition, in Vector3 localEulerAngles/Transform final], float duration)Creates a
TweenActionthat movesTransform localPositionto[localPosition]and rotatesTransform localEulerAnglesto[localEulerAngles].Creates a
TweenActionthat movesTransform localPositionto[final]and rotatesTransform localEulerAnglesto[final].Optimized using
Transform's built-in methodsGetPositionAndRotationandSetPositionAndRotation.
Transform Shake Position
-
TweenAction ActionShakePositionX/Y/Z(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform position xbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform position ybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform position zbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakePositionXY/XZ/YZ(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform position xybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform position xzbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform position yzbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakePosition(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform positionbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
Transform Shake Scale
-
TweenAction ActionShakeScaleX/Y/Z(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform scale xbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform scale ybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform scale zbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakeScaleXY/XZ/YZ(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform scale xybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform scale xzbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform scale yzbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakeScale(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform scalebased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
Transform Shake Rotation
-
TweenAction ActionShakeRotationX/Y/Z(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform rotation xbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform rotation ybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform rotation zbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakeRotationXY/XZ/YZ(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform rotation xybased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform rotation xzbased on[amplitude]and[speed]. Creates aTweenActionthat shakesTransform rotation yzbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
-
TweenAction ActionShakeRotation(float amplitude, float speed, float duration)Creates a
TweenActionthat shakesTransform rotationbased on[amplitude]and[speed].Note: Do not modify the
isRelativeandTweenEaseof theTweenAction, as the shake has fixed settings.
Transform Bezier Quadratic Move
-
TweenAction ActionBezier2MoveXY( [in Vector2 v2/float x, float y/Transform final], [in Vector2 controlPos/float controlPosX, float controlPosY/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform position xyto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform position xyto[xy]using aBezier2control point[controlPosXY].Creates a
TweenActionthat movesTransform position xyto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2MoveXY(toVector2, controlPosVector2, duration); transform.ActionBezier2MoveXY(toX, toY, controlPosX, controlPosY, duration); transform.ActionBezier2MoveXY(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2MoveXZ( [in Vector2 v2/float x, float z/Transform final], [in Vector2 controlPos/float controlPosX, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform position xzto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform position xzto[xz]using aBezier2control point[controlPosXZ].Creates a
TweenActionthat movesTransform position xzto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2MoveXZ(toVector2, controlPosVector2, duration); transform.ActionBezier2MoveXZ(toX, toZ, controlPosX, controlPosZ, duration); transform.ActionBezier2MoveXZ(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2MoveYZ( [in Vector2 v2/float y, float z/Transform final], [in Vector2 controlPos/float controlPosY, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform position yzto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform position yzto[yz]using aBezier2control point[controlPosYZ].Creates a
TweenActionthat movesTransform position yzto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2MoveYZ(toVector2, controlPosVector2, duration); transform.ActionBezier2MoveYZ(toY, toZ, controlPosY, controlPosZ, duration); transform.ActionBezier2MoveYZ(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2Move( [in Vector3 v3/float x, float y, float z/Transform final], [in Vector3 controlPos/float controlPosX, float controlPosY, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform positionto[v3]using aBezier2control point[controlPosVector3].Creates a
TweenActionthat movesTransform positionto[xyz]using aBezier2control point[controlPosXYZ].Creates a
TweenActionthat movesTransform positionto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2Move(toVector3, controlPosVector3, duration); transform.ActionBezier2Move(toX, toY, toZ, controlPosX, controlPosY, controlPosZ, duration); transform.ActionBezier2Move(toTransform, controlPosTransform, duration);
Transform Bezier Quadratic Local Move
-
TweenAction ActionBezier2LocalMoveXY( [in Vector2 v2/float x, float y/Transform final], [in Vector2 controlPos/float controlPosX, float controlPosY/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform localPosition xyto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform localPosition xyto[xy]using aBezier2control point[controlPosXY].Creates a
TweenActionthat movesTransform localPosition xyto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2LocalMoveXY(toVector2, controlPosVector2, duration); transform.ActionBezier2LocalMoveXY(toX, toY, controlPosX, controlPosY, duration); transform.ActionBezier2LocalMoveXY(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2LocalMoveXZ( [in Vector2 v2/float x, float z/Transform final], [in Vector2 controlPos/float controlPosX, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform localPosition xzto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform localPosition xzto[xz]using aBezier2control point[controlPosXZ].Creates a
TweenActionthat movesTransform localPosition xzto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2LocalMoveXZ(toVector2, controlPosVector2, duration); transform.ActionBezier2LocalMoveXZ(toX, toZ, controlPosX, controlPosZ, duration); transform.ActionBezier2LocalMoveXZ(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2LocalMoveYZ( [in Vector2 v2/float y, float z/Transform final], [in Vector2 controlPos/float controlPosY, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform localPosition yzto[v2]using aBezier2control point[controlPosVector2].Creates a
TweenActionthat movesTransform localPosition yzto[yz]using aBezier2control point[controlPosYZ].Creates a
TweenActionthat movesTransform localPosition yzto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2LocalMoveYZ(toVector2, controlPosVector2, duration); transform.ActionBezier2LocalMoveYZ(toY, toZ, controlPosY, controlPosZ, duration); transform.ActionBezier2LocalMoveYZ(toTransform, controlPosTransform, duration);
-
TweenAction ActionBezier2LocalMove( [in Vector3 v3/float x, float y, float z/Transform final], [in Vector3 controlPos/float controlPosX, float controlPosY, float controlPosZ/Transform controlPos], float duration)Creates a
TweenActionthat movesTransform localPositionto[v3]using aBezier2control point[controlPosVector3].Creates a
TweenActionthat movesTransform localPositionto[xyz]using aBezier2control point[controlPosXYZ].Creates a
TweenActionthat movesTransform localPositionto[final]using aBezier2control point[controlPosTransform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier2LocalMove(toVector3, controlPosVector3, duration); transform.ActionBezier2LocalMove(toX, toY, toZ, controlPosX, controlPosY, controlPosZ, duration); transform.ActionBezier2LocalMove(toTransform, controlPosTransform, duration);
Transform Bezier Cubic Move
-
TweenAction ActionBezier3MoveXY( [in Vector2 v2/float x, float y/Transform final], [in Vector2 controlPos1/float controlPos1X, float controlPos1Y/Transform controlPos1], [in Vector2 controlPos2/float controlPos2X, float controlPos2Y/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform position xyto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform position xyto[xy]usingBezier3control points[controlPos1XY]and[controlPos2XY].Creates a
TweenActionthat movesTransform position xyto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3MoveXY(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3MoveXY(toX, toY, controlPos1X, controlPos1Y, controlPos2X, controlPos2Y, duration); transform.ActionBezier3MoveXY(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3MoveXZ( [in Vector2 v2/float x, float z/Transform final], [in Vector2 controlPos1/float controlPos1X, float controlPos1Z/Transform controlPos1], [in Vector2 controlPos2/float controlPos2X, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform position xzto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform position xzto[xz]usingBezier3control points[controlPos1XZ]and[controlPos2XZ].Creates a
TweenActionthat movesTransform position xzto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3MoveXZ(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3MoveXZ(toX, toZ, controlPos1X, controlPos1Z, controlPos2X, controlPos2Z, duration); transform.ActionBezier3MoveXZ(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3MoveYZ( [in Vector2 v2/float y, float z/Transform final], [in Vector2 controlPos1/float controlPos1Y, float controlPos1Z/Transform controlPos1], [in Vector2 controlPos2/float controlPos2Y, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform position yzto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform position yzto[yz]usingBezier3control points[controlPos1YZ]and[controlPos2YZ].Creates a
TweenActionthat movesTransform position yzto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3MoveYZ(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3MoveYZ(toY, toZ, controlPos1Y, controlPos1Z, controlPos2Y, controlPos2Z, duration); transform.ActionBezier3MoveYZ(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3Move( [in Vector3 v3/float x, float y, float z/Transform final], [in Vector3 controlPos1/float controlPos1X, float controlPos1Y, float controlPos1Z/Transform controlPos1], [in Vector3 controlPos2/float controlPos2X, float controlPos2Y, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform positionto[v3]usingBezier3control points[controlPos1Vector3]and[controlPos2Vector3].Creates a
TweenActionthat movesTransform positionto[xyz]usingBezier3control points[controlPos1XYZ]and[controlPos2XYZ].Creates a
TweenActionthat movesTransform positionto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3Move(toVector3, controlPos1Vector3, controlPos2Vector3, duration); transform.ActionBezier3Move(toX, toY, toZ, controlPos1X, controlPos1Y, controlPos1Z, controlPos2X, controlPos2Y, controlPos2Z, duration); transform.ActionBezier3Move(toTransform, controlPos1Transform, controlPos2Transform, duration);
Transform Bezier Cubic Local Move
-
TweenAction ActionBezier3LocalMoveXY( [in Vector2 v2/float x, float y/Transform final], [in Vector2 controlPos1/float controlPos1X, float controlPos1Y/Transform controlPos1], [in Vector2 controlPos2/float controlPos2X, float controlPos2Y/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform localPosition xyto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform localPosition xyto[xy]usingBezier3control points[controlPos1XY]and[controlPos2XY].Creates a
TweenActionthat movesTransform localPosition xyto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3LocalMoveXY(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3LocalMoveXY(toX, toY, controlPos1X, controlPos1Y, controlPos2X, controlPos2Y, duration); transform.ActionBezier3LocalMoveXY(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3LocalMoveXZ( [in Vector2 v2/float x, float z/Transform final], [in Vector2 controlPos1/float controlPos1X, float controlPos1Z/Transform controlPos1], [in Vector2 controlPos2/float controlPos2X, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform localPosition xzto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform localPosition xzto[xz]usingBezier3control points[controlPos1XZ]and[controlPos2XZ].Creates a
TweenActionthat movesTransform localPosition xzto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3LocalMoveXZ(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3LocalMoveXZ(toX, toZ, controlPos1X, controlPos1Z, controlPos2X, controlPos2Z, duration); transform.ActionBezier3LocalMoveXZ(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3LocalMoveYZ( [in Vector2 v2/float y, float z/Transform final], [in Vector2 controlPos1/float controlPos1Y, float controlPos1Z/Transform controlPos1], [in Vector2 controlPos2/float controlPos2Y, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform localPosition yzto[v2]usingBezier3control points[controlPos1Vector2]and[controlPos2Vector2].Creates a
TweenActionthat movesTransform localPosition yzto[yz]usingBezier3control points[controlPos1YZ]and[controlPos2YZ].Creates a
TweenActionthat movesTransform localPosition yzto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3LocalMoveYZ(toVector2, controlPos1Vector2, controlPos2Vector2, duration); transform.ActionBezier3LocalMoveYZ(toY, toZ, controlPos1Y, controlPos1Z, controlPos2Y, controlPos2Z, duration); transform.ActionBezier3LocalMoveYZ(toTransform, controlPos1Transform, controlPos2Transform, duration);
-
TweenAction ActionBezier3LocalMove( [in Vector3 v3/float x, float y, float z/Transform final], [in Vector3 controlPos1/float controlPos1X, float controlPos1Y, float controlPos1Z/Transform controlPos1], [in Vector3 controlPos2/float controlPos2X, float controlPos2Y, float controlPos2Z/Transform controlPos2], float duration)Creates a
TweenActionthat movesTransform localPositionto[v3]usingBezier3control points[controlPos1Vector3]and[controlPos2Vector3].Creates a
TweenActionthat movesTransform localPositionto[xyz]usingBezier3control points[controlPos1XYZ]and[controlPos2XYZ].Creates a
TweenActionthat movesTransform localPositionto[final]usingBezier3control points[controlPos1Transform]and[controlPos2Transform].Note: Do not modify the
TweenEaseof theTweenAction, as the Bezier curve has fixed settings.transform.ActionBezier3LocalMove(toVector3, controlPos1Vector3, controlPos2Vector3, duration); transform.ActionBezier3LocalMove(toX, toY, toZ, controlPos1X, controlPos1Y, controlPos1Z, controlPos2X, controlPos2Y, controlPos2Z, duration); transform.ActionBezier3LocalMove(toTransform, controlPos1Transform, controlPos2Transform, duration);
RectTransform Move
-
TweenAction ActionMoveAnchoredX/Y/Z([float x/float y/float z], float duration)Creates a
TweenActionthat movesRectTransform anchoredPosition xto[x]. Creates aTweenActionthat movesRectTransform anchoredPosition yto[y]. Creates aTweenActionthat movesRectTransform anchoredPosition3D zto[z].
-
TweenAction ActionMoveAnchoredXY([in Vector2 v2/float x, float y/RectTransform final], float duration)Creates a
TweenActionthat movesRectTransform anchoredPosition xyto[v2]. Creates aTweenActionthat movesRectTransform anchoredPosition xyto[xy]. Creates aTweenActionthat movesRectTransform anchoredPosition xyto[final].
-
TweenAction ActionMoveAnchored([in Vector3 v3/float x, float y, float z/RectTransform final], float duration)Creates a
TweenActionthat movesRectTransform anchoredPosition3Dto[v3]. Creates aTweenActionthat movesRectTransform anchoredPosition3Dto[xyz]. Creates aTweenActionthat movesRectTransform anchoredPosition3Dto[final].
RectTransform OffsetMax
-
TweenAction ActionOffsetMaxX/Y([float x/float y], float duration)Creates a
TweenActionthat changesRectTransform offsetMax xto[x]. Creates aTweenActionthat changesRectTransform offsetMax yto[y].
-
TweenAction ActionOffsetMax([in Vector2 v2/float x, float y/RectTransform final], float duration)Creates a
TweenActionthat changesRectTransform offsetMaxto[v2]. Creates aTweenActionthat changesRectTransform offsetMaxto[xy]. Creates aTweenActionthat changesRectTransform offsetMaxto[final].
RectTransform OffsetMin
-
TweenAction ActionOffsetMinX/Y([float x/float y], float duration)Creates a
TweenActionthat changesRectTransform offsetMin xto[x]. Creates aTweenActionthat changesRectTransform offsetMin yto[y].
-
TweenAction ActionOffsetMin([in Vector2 v2/float x, float y/RectTransform final], float duration)Creates a
TweenActionthat changesRectTransform offsetMinto[v2]. Creates aTweenActionthat changesRectTransform offsetMinto[xy]. Creates aTweenActionthat changesRectTransform offsetMinto[final].
RectTransform SizeDelta
-
TweenAction ActionSizeDeltaX/Y([float x/float y], float duration)Creates a
TweenActionthat changesRectTransform sizeDelta xto[x]. Creates aTweenActionthat changesRectTransform sizeDelta yto[y].
-
TweenAction ActionSizeDelta([in Vector2 v2/float x, float y/RectTransform final], float duration)Creates a
TweenActionthat changesRectTransform sizeDeltato[v2]. Creates aTweenActionthat changesRectTransform sizeDeltato[xy]. Creates aTweenActionthat changesRectTransform sizeDeltato[final].
RectTransform Size
-
TweenAction ActionSizeX/Y([float x/float y], float duration)Creates a
TweenActionthat changesRectTransform size xto[x]. Creates aTweenActionthat changesRectTransform size yto[y].
-
TweenAction ActionSize([in Vector2 v2/float x, float y/RectTransform final], float duration)Creates a
TweenActionthat changesRectTransform sizeto[v2]. Creates aTweenActionthat changesRectTransform sizeto[xy]. Creates aTweenActionthat changesRectTransform sizeto[final].
Graphic Color
-
TweenAction ActionFadeTo(float alpha, float duration)Creates a
TweenActionthat fadesGraphic color alphato[alpha].
-
TweenAction ActionFadeIn/Out(float duration)Creates a
TweenActionthat fades inGraphic color alphato[1.0f]. Creates aTweenActionthat fades outGraphic color alphato[0.0f].
-
TweenAction ActionColorTo(in Color color, float duration)Creates a
TweenActionthat tweensGraphic colorto[color].
-
TweenAction ActionRGBTo(in Color color/ in Vector3 rgb, float duration)Creates a
TweenActionthat tweensGraphic color rgbto[color]. Creates aTweenActionthat tweensGraphic color rgbto[rgb].
CanvasGroup Color
-
TweenAction ActionFadeTo(float alpha, float duration)Creates a
TweenActionthat fadesCanvasGroup color alphato[alpha].
-
TweenAction ActionFadeIn/Out(float duration)Creates a
TweenActionthat fades inCanvasGroup color alphato[1.0f]. Creates aTweenActionthat fades outCanvasGroup color alphato[0.0f].
CanvasRenderer Color
-
TweenAction ActionFadeTo(float alpha, float duration)Creates a
TweenActionthat fadesCanvasRenderer color alphato[alpha].
-
TweenAction ActionFadeIn/Out(float duration)Creates a
TweenActionthat fades inCanvasRenderer color alphato[1.0f]. Creates aTweenActionthat fades outCanvasRenderer color alphato[0.0f].
-
TweenAction ActionColorTo(in Color color, float duration)Creates a
TweenActionthat tweensCanvasRenderer colorto[color].
-
TweenAction ActionRGBTo(in Color color/in Vector3 rgb, float duration)Creates a
TweenActionthat tweensCanvasRenderer color rgbto[color]. Creates aTweenActionthat tweensCanvasRenderer color rgbto[rgb].
SpriteRenderer Color
-
TweenAction ActionFadeTo(float alpha, float duration)Creates a
TweenActionthat fadesSpriteRenderer color alphato[alpha].
-
TweenAction ActionFadeIn/Out(float duration)Creates a
TweenActionthat fades inSpriteRenderer color alphato[1.0f]. Creates aTweenActionthat fades outSpriteRenderer color alphato[0.0f].
-
TweenAction ActionColorTo(in Color color, float duration)Creates a
TweenActionthat tweensSpriteRenderer colorto[color].
-
TweenAction ActionRGBTo(in Color color/in Vector3 rgb, float duration)Creates a
TweenActionthat tweensSpriteRenderer color rgbto[color]. Creates aTweenActionthat tweensSpriteRenderer color rgbto[rgb].
AudioSource Volume
-
TweenAction ActionVolumeTo(float volume, float duration)Creates a
TweenActionthat changesAudioSource volumeto[volume].
-
TweenAction ActionVolumeIn/Out(float duration)Creates a
TweenActionthat changesAudioSource volumeto[1.0f]. Creates aTweenActionthat changesAudioSource volumeto[0.0f].
Material Values
-
TweenAction ActionFloatTo(string name, float value, float duration)Creates a
TweenActionthat changes thefloatproperty named[name]of aMaterialto[value].
-
TweenAction ActionIntTo(string name, int value, float duration)Creates a
TweenActionthat changes theintproperty named[name]of aMaterialto[value].
-
TweenAction ActionVectorTo(string name, in Vector4 v4, float duration)Creates a
TweenActionthat changes thevectorproperty named[name]of aMaterialto[v4].
-
TweenAction ActionColorTo(string name, in Color color, float duration)Creates a
TweenActionthat changes thecolorproperty named[name]of aMaterialto[color].
Scrollbar Value
-
TweenAction ActionValueTo(float value, float duration)Creates a
TweenActionthat changesScrollbar valueto[value].
TweenManager
-
static bool IsAnyUpdating()Is any
Tweencurrently updating?
-
static void PlayAll()Plays all updating
Tweens, except those that have stopped or completed and are about to be automatically recycled. Note: If aTweenis currently or was previously rewinding, it will be reversed.
-
static void RewindAll()Rewinds all updating
Tweens, except those that have stopped or completed and are about to be automatically recycled.
-
static void RestartAll()Restarts all updating
Tweens, except those that have stopped or completed and are about to be automatically recycled.
-
static void ReverseAll()Reverses all updating
Tweens, except those that have stopped or completed and are about to be automatically recycled.
-
static void PauseAll(bool isPause)Pauses or resumes all updating
Tweens.
-
static void TogglePauseAll()Toggles pause/resume for all updating
Tweens.
-
static void StopAll()Stops all updating
Tweens, except those inSetup,Stopping,Stopped,Completing, orCompletedstates. Note: If aTweenis recyclable, it will be recycled after stopping.
-
static void SetRecyclableAll(bool isRecyclable)Sets whether all updating
Tweensare recyclable.
-
static void RecycleAll()Stops all updating
Tweensand recycles all unrecycledTweens.
-
static void Update()Updates all updating
Tweens. Must be called every frame.
-
static void DisposeAllNativeData()Disposes of all native data. Must be called when the application exits. If native data is not disposed, it will cause editor errors upon application exit.