UKismetMathLibrary::CInterpTo

Interpolate Linear Color from Current to Target.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static FLinearColor CInterpTo
(
    FLinearColor Current,
    FLinearColor Target,
    float DeltaTime,
    float InterpSpeed
)

Remarks

Interpolate Linear Color from Current to Target. Scaled by distance to Target, so it has a strong start speed and ease out.

Returns

New interpolated Color

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss