Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Interpolate Linear Color from Current to Target. Scaled by distance to Target, so it has a strong start speed and ease out.
| Name | CInterpTo |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
UFUNCTION (BlueprintPure,
Meta=(DisplayName="Interpolate (LinearColor)", ScriptMethod="InterpolateTo", Keywords="color"),
Category="Math|Interpolation")
static UE_FLinearColor CInterpTo
(
FLinearColor Current,
FLinearColor Target,
float DeltaTime,
float InterpSpeed
)
New interpolated Color
Parameters
| Name | Remarks |
|---|---|
| Current | Current Color |
| Target | Target Color |
| DeltaTime | Time since last tick |
| InterpSpeed | Interpolation speed, if the speed given is 0, then jump to the target. |