UKismetMathLibrary::TEase
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Eases between transform A and transform B using the specified easing function, applying the eased Alpha to location, rotation, and scale. Used for stylised transitions rather than plain linear blends.
Caveats & Gotchas
- • In C++ this function is marked BlueprintInternalUseOnly, meaning Blueprint graphs expose it only through the dedicated "Ease" node UI rather than a directly callable node — calling it from C++ is still fine.
- • BlendExp and Steps are only meaningful for certain EasingFunc values (exponential and step curves respectively); they're ignored for others like sinusoidal easing.
Signature
static FTransform TEase(const FTransform& A, const FTransform& B, float Alpha, TEnumAsByte<EEasingFunc::Type> EasingFunc, float BlendExp = 2, int32 Steps = 2) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | const FTransform& | The transform returned when Alpha is 0. | — |
| B | const FTransform& | The transform returned when Alpha is 1. | — |
| Alpha | float | Interpolation factor between A and B. | — |
| EasingFunc | TEnumAsByte<EEasingFunc::Type> | The easing curve to apply to Alpha before blending. | — |
| BlendExp | float | Exponent used by the exponential-style easing functions (e.g. EaseIn, EaseOut). | 2 |
| Steps | int32 | Number of steps used by the step-interpolation easing functions. | 2 |
Return Type
FTransform Example
Ease a UI panel transform into place C++
FTransform Eased = UKismetMathLibrary::TEase(HiddenTransform, VisibleTransform, Alpha, EEasingFunc::EaseOut); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?