# mykaadev - Tween - Lightweight Tweening Library

**URL:** <https://forums.unrealengine.com/t/mykaadev-tween-lightweight-tweening-library/2607574>\
**Category:** Product Discussion\
**Tags:** unreal-engine, fab\
**Created:** [July 17, 2025, 4:26am UTC](https://forums.unrealengine.com/t/mykaadev-tween-lightweight-tweening-library/2607574 "2025-07-17T04:26:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nulled](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nulled/32/1103567_2.png) [@nulled](https://forums.unrealengine.com/u/nulled)\
**Post date:** [July 17, 2025, 4:26am UTC](https://forums.unrealengine.com/t/mykaadev-tween-lightweight-tweening-library/2607574/1 "2025-07-17T04:26:48Z")

</div>

## 👀 Summary

NsTween is a small yet powerful tweening framework for Unreal Engine. It allows smooth interpolation of floats, vectors and quaternions using a rich set of easing functions. Tweens can be controlled entirely through C++ or Blueprint nodes.

[![NsTween](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/a/f8a6fc77b828224a986f3cb4252e99e603f6e3f0.png)](https://github.com/mykaadev/NsTween/blob/main/Resources/SupportedCurvesRow.png)

## 📦 Features

- **Multiple data types** : `Float`, `Vector`, `Vector2D`, `Rotator`, `Quaternion`, `Transform` and `Color` values.
- **Custom easing** : Choose from many easing curves or drive interpolation via a user supplied curve.
- **Warp mode** : Built-in `Looping`, `Delays` and `Ping-Pong` behaviours.
- **Direction** : Chose between `Forward` or `Backward`
- **Blueprint actions** : Async Blueprint nodes for quick setup without code.
- **Subsystem based** : A Subsystem to handle all the active tweens.
- **Tween-To-Tween Injection** : Inject any different tween behaviour at any time into your current tween.

## ⚙ Requirements

Unreal Engine 5.2+

## 🛠 Installation

1. **Clone** or download this repository.
2. Copy the `NsTween` folder into your project’s `Plugins` directory.
3. Generate project files and enable the plugin when prompted.

## 🚀 Getting Started

Below is a minimal C++ example showing how to move an actor along the X axis using the fluent tween helpers built into `FNsTween`:

```cpp
#include "NsTween.h"

void AMyActor::BeginPlay()
{
    Super::BeginPlay();

    FNsTween::Play(
        /**Start*/ 0.f,
        /**End*/ 100.f,
        /**Time*/ 2.f,
        /**Ease*/ ENsTweenEase::InOutQuad,
        /**Update*/ [this](float Value)
        {
            SetActorLocation(FVector(Value, 0.f, 0.f));
        });
}

```

The library also exposes Blueprint nodes for the same functionality if you prefer a visual approach. Below is a slightly more advanced snippet showing how to make an item float up and down while spinning for 10 complete loops

```cpp
#include "NsTween.h"

void AFloatingItem::BeginPlay()
{
    Super::BeginPlay();

    // Float continuously
    FNsTween::Play(
         /**Start*/ GetActorLocation().Z,
         /**End*/ GetActorLocation().Z + 40.f,
         /**Time*/ 1.f,
         /**Ease*/ ENsTweenEase::InOutSine,
         /**Update*/ [this](float Z)
        {
            FVector CurrentLocation = GetActorLocation();
            CurrentLocation.Z = Z;
            SetActorLocation(CurrentLocation);
        })
        .SetPingPong(true)
        .SetLoops(-1); // infinite loops

    // Rotate and print 10 times the Loop
    FNsTween::Play(
        /** Start */ 0.f,
        /** End */ 360.f,
        /** Time */ 2.f,
        /** Ease */ ENsTweenEase::Linear,
        /** Update */ [this](float Yaw)
        {
            SetActorRotation(FRotator(0.f, Yaw, 0.f));
        })
        .SetLoops(10) // 10 full spins
        .OnLoop([this]()
        {
            UE_LOG(LogTemp, Warning, TEXT("Spin finished"));
        });
}

```

## 🚩 Road Map

[![NsTween](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/b/2db76600693d85045a80125695a60887060b6fa4.png)](https://github.com/mykaadev/NsTween/blob/main/Resources/RoadMap.png)

## 🔧 API

### Runtime Core

- `FNsTween` – Runtime tween state tracking easing, wrap modes, delegates, and pause behavior.
- `FNsTweenBuilder` – Fluent setup handle chaining specs, callbacks, activation, and control forwarding.
- `UNsTweenSubsystem` – Game-instance subsystem ticking live tweens, processing commands, and allocating easing curves.

### Data & Specs

- `FNsTweenSpec` / `FNsTweenCommand` / `FNsTweenHandle` – Blueprint-ready structs describing playback options, delegate hooks, queued commands, and handles.
- `UNsTweenSequence` – UObject sequence asset storing ordered tween specs for content-driven playback.

### Blueprint & Async Surface

- `UNsTweenBlueprintLibrary` – Central Blueprint library spawning tweens, exposing ease presets, and forwarding subsystem controls.
- `UNsTweenAsyncAction` (base) – Shared async action base normalizing inputs, binding events, and managing lifecycle cleanup.
- Typed async nodes – Float, vector, rotator, transform, and color broadcasts with curve overrides.

### Strategies & Helpers

- Callback strategy / interpolators – Lambda-friendly callback strategies and templated interpolators supplying type-appropriate lerp math.
- Native value strategies – Native ITweenValue implementations initializing targets, applying eased updates, and ensuring completion.

### Easing Implementations

- `FNsTweenPolynomialEasing` – Polynomial easing evaluator covering sine, expo, elastic, bounce, and back presets.
- `FNsTweenBezierEasing` – Cubic Bezier easing solver inverting time with Newton steps before sampling output.
- `FNsTweenCurveAssetEasingAdapter` – Adapter wrapping UCurveFloat assets to drive easing while falling back gracefully.

## 🧭 Tech Documentation Layout

Use the following map when you need to dive deeper than the high-level feature overview. Each entry mirrors the folder layout inside the plugin so you can jump straight from prose into the exact file that owns the logic.

### Public Surface

- [`Source/NsTween/Public/NsTween.h`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Public/NsTween.h) — contains `FNsTween::Play` and the templated `BuildT<T>` helpers that every example in the docs references.
- [`Source/NsTween/Public/NsTweenTypeLibrary.h`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Public/NsTweenTypeLibrary.h) — enums, delegates, and light-weight structs used across the tutorials.
- [`Source/NsTween/Public/Interfaces/ITweenValue.h`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Public/Interfaces/ITweenValue.h) — the strategy contract implemented by each type-specific value driver.
- [`Source/NsTween/Public/Templates/`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Public/Templates) — header-only interpolators and callback strategies.

### Runtime Flow

- [`Source/NsTween/Private/NsTween.cpp`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Private/NsTween.cpp) — documents the lifetime of an active tween, including pause/cancel semantics and wrap modes.
- [`Source/NsTween/Private/NsTweenBuilder.cpp`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Private/NsTweenBuilder.cpp) — shows how specs become runtime objects before entering the subsystem.
- [`Source/NsTween/Private/NsTweenSubsystem.cpp`](https://github.com/mykaadev/NsTween/blob/main/Source/NsTween/Private/NsTweenSubsystem.cpp) — central tick loop and allocation strategy for live tweens

---

<div class="post-metadata">

**Author:** ![BlueDiamond87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueDiamond87](https://forums.unrealengine.com/u/BlueDiamond87)\
**Post date:** [December 15, 2025, 1:28am UTC](https://forums.unrealengine.com/t/mykaadev-tween-lightweight-tweening-library/2607574/2 "2025-12-15T01:28:25Z")

</div>

Hi, wondering what you’ve changed compared to Fresh Cooked Tweens since it’s a fork of it

---

<div class="post-metadata">

**Author:** ![nulled](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nulled/32/1103567_2.png) [@nulled](https://forums.unrealengine.com/u/nulled)\
**Post date:** [December 18, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/mykaadev-tween-lightweight-tweening-library/2607574/3 "2025-12-18T13:18:25Z")

</div>

Hi @BlueDiamong87!

Great question. Thanks for asking.

Short version: what you saw originally started as a forked exploration, but it’s now been rebased and rebuilt.  
The current codebase is an independent implementation (I kept a brief acknowledgement to Fresh Cooked Tweens as inspiration, but our roadmaps diverge).

What’s in the latest build:  
The Core of any decent tween framework

- Type coverage out of the box: float, vectors, rotators, quats, transforms, colors
- Proper interpolation
- Easing presets

How this differs from FCT’s model?  
My project is fully open source on GitHub. If you buy it on Fab, you’re paying for packaging, convenience, and support - but the complete source remains available on GitHub for free.  
My understanding is that FCT’s open-source repo is a “Lite” edition, while there’s a separate “Pro” on Fab. I don’t have details on the Pro feature set or differences, so I can’t comment on it.

The NsTween NtL-term roadmap:

- Constraint/budget-aware playback
- Safety guardrails (photosensitivity/motion amplitude)
- Reusable tween presets
- Sequence editor + asset graph (compose/preview without hardcoding tween prefabs)

If you only need simple tween framework, FCT Lite as-is, the original repo is a solid choice.  
If you want the above workflow features and ongoing support, that’s the direction I’m driving here

Cheers 🙂
