![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AnimatedAttribute.h>
Inheritance diagram for TAnimatedAttribute< NumericType >:Classes | |
| struct | FPrivateToken |
Public Types | |
| using | FGetter = TDelegate< NumericType()> |
Static Public Member Functions | |
| template<typename InterpolatorSettings , typename OtherType > | |
| static TSharedRef< TAnimatedAttribute > | Create (const InterpolatorSettings &InSettings, OtherType &&InInitialValue) |
| template<typename InterpolatorSettings > | |
| static TSharedRef< TAnimatedAttribute > | CreateWithGetter (const InterpolatorSettings &InSettings, const FGetter &InGetter, const TOptional< NumericType > &InDefaultValue=TOptional< NumericType >()) |
| template<typename InterpolatorSettings > | |
| static TSharedRef< TAnimatedAttribute > | CreateWithGetter (const InterpolatorSettings &InSettings, FGetter &&InGetter, const TOptional< NumericType > &InDefaultValue=TOptional< NumericType >()) |
Protected Member Functions | |
| TAnimatedAttribute ()=delete | |
Protected Member Functions inherited from TAnimatedAttributeBase | |
| SLATE_API | TAnimatedAttributeBase () |
| virtual SLATE_API | ~TAnimatedAttributeBase () |
| SLATE_API void | Register () |
| SLATE_API void | Unregister () |
Protected Member Functions inherited from TSharedFromThis< TAnimatedAttributeBase > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Friends | |
| template<class OtherType > | |
| class | TAnimatedAttribute |
Additional Inherited Members | |
Static Protected Member Functions inherited from TSharedFromThis< TAnimatedAttributeBase > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Animated Attribute object
| using TAnimatedAttribute< NumericType >::FGetter = TDelegate<NumericType()> |
Attribute 'getter' delegate
NumericType GetValue() const
|
protecteddelete |
Default constructor.
|
inline |
Construct only from interpolator settings This is used only for the Create methods and only accessible from there due to the use of a protected FPrivateToken. Please rely on the Create methods if you are seeing a compiler error related to this.
| InSettings | The settings for the interpolator |
|
inlinestatic |
Static: Creates an animated attribute implicitly from an initial value
| InSettings | The settings for the interpolator |
| InInitialValue | The value for this attribute |
|
inlinestatic |
Static: Creates an animated attribute that's pre-bound to the specified 'getter' delegate
| InSettings | The settings for the interpolator |
| InGetter | Delegate to bind |
| InDefaultValue | The optional default value. If not specified the getter will be used to determine the default |
|
inlinestatic |
Static: Creates an animated attribute that's pre-bound to the specified 'getter' delegate
| InSettings | The settings for the interpolator |
| InGetter | Delegate to bind |
| InDefaultValue | The optional default value. If not specified the getter will be used to determine the default |
|
inline |
Disables the interpolator and returns values in immediate mode
|
inline |
Enables (or disables) the interpolator and returns values in interpolated or immediate mode
|
inline |
Gets the attribute's current value. Assumes that the attribute is set.
|
inline |
Gets the attribute's current value. The attribute may not be set, in which case use the default value provided. Shorthand for the boilerplate code: MyAttribute.IsSet() ? MyAttribute.Get() : DefaultValue
|
inline |
Returns the currently set delay on the interpolator
|
inline |
Returns the desired value this attribute is trying to reach.
|
inline |
Returns the overall deltatime of the interpolator
|
inline |
Is this attribute identical to another TAnimationAttribute.
| InOther | The other attribute to compare with. |
|
inline |
Checks to see if this attribute has a 'getter' function bound
|
inline |
Returns true if the attribute is currently animating
|
inline |
Was this TAnimatedAttribute ever assigned?
|
inline |
|
inline |
|
inline |
Sets the attribute's value while keeping a running interpolation going. The value will be become the new desired value and the interpolation will continue trying to reach it. If the interpolation is currently stopped the animation / interpolation will restart towards the new provided value.
| InNewValue | The value to set the attribute to |
|
inline |
Sets the attribute's value while keeping a running interpolation going. The value will be become the new desired value and the interpolation will continue trying to reach it. If the interpolation is currently stopped the animation / interpolation will restart towards the new provided value.
| InNewValue | The value to set the attribute to |
|
inline |
Sets the attribute's delay as a one shot
|
inline |
Sets the tolerance of this interpolator
|
inline |
Sets the attribute's value and disables animation. The interpolator will be stopped and the value will become the new current value.
| InNewValue | The value to set the attribute to |
|
inline |
Sets the attribute's value and disables animation. The interpolator will be stopped and the value will become the new current value.
| InNewValue | The value to set the attribute to |