CommonAnimationLibrary::ScalarEasing

This function perform easing on a float value using a variety of easing types.

Choose your operating system:

Windows

macOS

Linux

References

Module

AnimGraphRuntime

Header

/Engine/Source/Runtime/AnimGraphRuntime/Public/CommonAnimationLibrary.h

Include

#include "CommonAnimationLibrary.h"

Source

/Engine/Source/Runtime/AnimGraphRuntime/Private/CommonAnimationLibrary.cpp

Syntax

namespace CommonAnimationLibrary
{
    float CommonAnimationLibrary::ScalarEasing
    (
        float Value,
        const FRuntimeFloatCurve & CustomCurve,
        EEasingFuncType EasingType,
        bool bFlip,
        float Weight
    )
}

Remarks

This function perform easing on a float value using a variety of easing types.

Parameters

Parameter

Description

Value

The float value to ease

EasingType

The easing function to use

CustomCurve

The curve to use if the easing type is "Custom"

bFlip

If set to true the easing is flipping around

Weight

The amount of easing to use against linear (0.0 to 1.0)