![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AttributeInterpolator.h>
Inheritance diagram for TAttributeInterpolator< NumericType >:Public Member Functions | |
| DECLARE_MULTICAST_DELEGATE_OneParam (FInterpolatorEvent, TOptional< NumericType >) | |
| TAttributeInterpolator () | |
| virtual | ~TAttributeInterpolator () |
| virtual bool | IsTypeOf (EAttributeInterpolatorType InType) const =0 |
| virtual bool | IdenticalTo (const TAttributeInterpolator *InOther) const =0 |
| bool | IsSet () const |
| void | Reset () const |
| bool | IsEnabled () const |
| void | SetEnabled (bool InEnabled=true) |
| void | SetValue (const NumericType &InValue) const |
| void | SetValueAndStop (const NumericType &InValue) const |
| const NumericType & | Get () const |
| void | Tick (float InDeltaTime) |
| double | GetOverAllDeltaTime () const |
| void | SetDelayOneShot (float InDelay) const |
| void | SetTolerance (float InTolerance) |
| FInterpolatorEvent & | OnInterpolationStarted () |
| FInterpolatorEvent & | OnInterpolationStopped () |
| bool | Equals (const float &InA, const float &InB, double InTolerance) |
| bool | Equals (const double &InA, const double &InB, double InTolerance) |
Static Public Member Functions | |
| static bool | Equals (const NumericType &InA, const NumericType &InB, double InTolerance=0.001) |
Protected Member Functions | |
| virtual void | Interpolate () const =0 |
| bool | IsPlaying () const |
| virtual bool | Start () const |
| virtual bool | PlayIfStopped () const |
| virtual bool | Stop () const |
| virtual bool | Restart () const |
Protected Attributes | |
| bool | bEnabled |
| float | Tolerance |
| TOptional< float > | Delay |
| TOptional< float > | OverallDeltaTime |
| TOptional< NumericType > | InterpolatedValue |
| TOptional< NumericType > | LastValue |
| TOptional< NumericType > | DesiredValue |
| FInterpolatorEvent | InterpolationStarted |
| FInterpolatorEvent | InterpolationStopped |
Friends | |
| template<typename > | |
| class | TAnimatedAttribute |
Attribute Interpolator Base Class
|
inline |
|
inlinevirtual |
| TAttributeInterpolator< NumericType >::DECLARE_MULTICAST_DELEGATE_OneParam | ( | FInterpolatorEvent | , |
| TOptional< NumericType > | |||
| ) |
|
inline |
|
inline |
|
inlinestatic |
Helper function to compare to values - to allow to specialize per type as needed
| InA | The first value to compare |
| InB | The second value to compare |
|
inline |
Returns the interpolated value
|
inline |
Returns the delta time between the start of the animation and now
|
pure virtual |
Compares this interpolator to another one
| InOther | The interpolator to compare this one to |
Implemented in TEasingAttributeInterpolator< NumericType >, TArriveAttributeInterpolator< NumericType >, and TVerletAttributeInterpolator< NumericType >.
|
protectedpure virtual |
|
inline |
|
inlineprotected |
|
inline |
Returns true if this interpolator's value has even been set
|
pure virtual |
Returns true if the interpolator is of a given type
| InType | The type to compare agains |
Implemented in TEasingAttributeInterpolator< NumericType >, TArriveAttributeInterpolator< NumericType >, and TVerletAttributeInterpolator< NumericType >.
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inline |
Resets the interpolator
|
inlineprotectedvirtual |
Reimplemented in TArriveAttributeInterpolator< NumericType >, and TVerletAttributeInterpolator< NumericType >.
|
inline |
Sets the delay for the next shot - delays are consumed and only used once
|
inline |
|
inline |
Sets the tolerance on this interpolator
|
inline |
Set the internal state of the interpolator
| InValue | The value to be set on the interpolator |
|
inline |
Set the internal state of the interpolator and disables animation
| InValue | The value to be set on the interpolator |
|
inlineprotectedvirtual |
Reimplemented in TArriveAttributeInterpolator< NumericType >, and TVerletAttributeInterpolator< NumericType >.
|
inlineprotectedvirtual |
|
inline |
Updates the interpolator
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |