Mini Tween is a quick and easy tweening tool that specializes in effects and animation processing
and is highly optimized.
A tween consists of position, rotation, scale, anchoredPosition, sizeDelta, color, alpha, timer
Component
Animation Properties
A property that is common to all tweens.
Flags | You can set up Loop, PingPong, or both |
Update | Set the update method. For Manual, you must call OnUpdate directly. |
Animation | The maximum time of an 'animation curve' is 1.0 |
Delay | Startup Delay |
Duration | Total time |
Events | ![](https://lh7-us.googleusercontent.com/docsz/AD_4nXfjZAh5ZJuIR3Yvk0lpc1h0imyk4O0lS3vtrYdxHrVa-q_-mnAQgSn5vXo3X6jEhbUmbusLRNAoUtEIgOtkwAUNwBolJ3qxihbeng1IFKpxUhrhN5QUnDmE_z5W2mcJxzAn8231kw7SYjvBURr9GrU?key=QTZuKssj0pQzqB0CmcvRgg)
FirstLastPosition - Applies to both FirstPosition and LastPosition LastPosition - Called when moving to the last position in forward play FirstPosition - Called when moving to the first position in backward play Enabled - Start event Disabled - End event |
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXdsf0LRYkn3ZOSDiozmihH_jFqLcrz0TKYm8oEW74wLohWiktfbS0PoWo4kwqU9nysONJ5shgkqTg_dVK_5Dx60rNfOBNhHDbhjXeG0oGOYgdltmve7Tkwn1F-g8-chvHlJBT1KM4Mq10RiIfbs-g?key=QTZuKssj0pQzqB0CmcvRgg)
| Preview the animation before playmode |
Tween Properties
TweenPosition
Move the position from "From" to "To"
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXfXT5jBS18oO0GEEjSilwDxhp15PYter1PhkNWhff05bSb_RFU9lKfY77p02MaWMKLc3wdPbi6jJK144Au39rorCYwASPabHyO0NpH9CDJuyiOy1ihCK101dmTH2PFOVF2W9R1FDxHIVEq4DaKgiA?key=QTZuKssj0pQzqB0CmcvRgg)
Local | Local space |
World | World space |
Offset | World space with the parent's location as the origin |
TweenRotation
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXf7wxsr5KD4NQMKN4PXHccTzGQ6moKoCFYkcu7wiXb7ewUKhjOnzeyGcq7wScOV0s-cxcswbnRKWllloUVYrnIKtMGRtGBsJJShIr6V3P-ZImGeDpeUdPU03oLfAzRYLOr-N9AKdbl7tvHRlBDZCws?key=QTZuKssj0pQzqB0CmcvRgg)
Rotate from "From" to "To"
TweenScale
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXd9S-kQKp4_WPgC8hZ5_0gw7ban4CbCqXsk8FugHGYTqev5vORptYg5Mds-HThazjtcN2spp9s9jWT6aRmCPkej9N6ZmDmTL85T3BX0j7ZMfGpSKX2SbT07gndEOiy-2EDD_5j2J_HIWwYm2TrVdOc?key=QTZuKssj0pQzqB0CmcvRgg)
Scaling from "From" to "To
TweenRTPosition
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXc_KyFG0_p9u8eQiiuHFsWA8o1MBmn3eRE5xZNt611LTQCQ-TIy2Dqjef7XyPu1Vv1rJjHEKOFE1fvLR9wk-_MbQMe-VHqyOh1fgC7PLcqQ__YSdaubs8AN_q-4RZ4LvGInoOc12eqMkrrHYusV2Q?key=QTZuKssj0pQzqB0CmcvRgg)
Move the "RectTransform.anchoredPosition" from "From" to "To"
TweenRTSize
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXc1jMeDqRKIukCdCIb5ayMtbWLrb3I8Y_556utJKrAXSNptIYFLAP79TNWq4uvKFuSGZSV1uypbV36FIYa8_uhKzmHnG1JljDNJgptXppM1Hds7-us6iuXNEwVL5lFb8O_m5AuBxiuVl7fy5RUjTho?key=QTZuKssj0pQzqB0CmcvRgg)
Resize "RectTransform.sizeDelta" from "From" to "To"
TweenColor
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXfaklaN49PJVc7D8SU0UtJS_IFCEwt3-NUoetjRgW2cujC0lCE2ZYi0mymyT2hsp84nwBMfJ9zdsOrsZqVupYMG5ALBJ632cfM6Gorjv3xMCWOz91R3LFLSp9rNiTw6zJ4IsxXv7zlahitTgZt7AY4?key=QTZuKssj0pQzqB0CmcvRgg)
Change the color from "From" to "To".
Supported components are "Image, RawImage, Text, SpriteRenderer, CanvasRenderer, Renderer",
which means most components are supported.
TweenAlpha
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXe8yl8RZdYVhcKTrVFcAqS-R7Aw3_7BCWr5Gjni7H14crOsHVXRjerimuoiW5u-7M1o6qUnjifnNtizaZzTE0Ohl0jgzVO8OgQUu5RHrnLwKg8Cko11WxAu2K48v1zeJ88MUkmqNqLth5yRwTsUCcg?key=QTZuKssj0pQzqB0CmcvRgg)
Change the alpha from "From" to "To".
Supported components are "Image, RawImage, Text, SpriteRenderer, CanvasRenderer, Renderer",
which means most components are supported.
TweenTimer
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXes4ItPaQ_zHnatD761nYn_RH2tPOp29YVNLivn0CxLk6uLw4pINzQOZYUDMF5JniiP-k9SpjD4eLWN_H-4NUZvCP6_YCZtm9NeHEDcJFPVwYUJL2eq9N6lNVuzApoKPbq4pxfdp3XjdPLNG3SWFh4?key=QTZuKssj0pQzqB0CmcvRgg)
Call "On Updated" on every update.
TweenGroup
![](https://lh7-us.googleusercontent.com/docsz/AD_4nXcqeaYaf3BbSSDffpjTG_5QeLy88sO5QnD7bqTH5QBc9c9YHXc9RYW6wGNgPWPvJlzecDu2XkwRxOLaOH6St_h2LCYGy5zV0t7J3PF67SSEFyyCtV3cYgTi8u2gC60-pYyS15Nk9XLcVTF0uVzTQw?key=QTZuKssj0pQzqB0CmcvRgg)
You can group tweens together to manage them.
API
ITween
All tweens except "TweenGroup" inherit from ITween.
enabled | Play/Stop Tween |
Duration | Total time |
Forward | Playback Direction |
NormalizedPosition | Playback position |
OnUpdate | For manual update, call required externally. |
Play | Make the tween playing |
PlayForward | Play in the forward direction. The starting position can be passed as an argument. |
PlayReserve | Play backwards. The starting position can be passed as an argument. |
Toggle | Toggle the playback direction. |
Evaluate | Apply the properties of normalizedPosition. |
GetEvent | Gets the Events (UnityEvent) for a specific When. If the event doesn't exist, it's created. |
Tween Group
PlayAutomatically | Automatically play tweens on enable. |
Tweens | Tweens in the group. |
Play | Make the tweens playing. |
PlayForward | Play in the forward direction. The starting position can be passed as an argument. |
PlayReserve | Play backwards. The starting position can be passed as an argument. |
Toggle | Toggle the playback direction. |
Stop | Stop the tweens from playing. |
SetNormalizedPosition | Change the playback position. |
Evaluate | Apply the properties of normalizedPosition. |