Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimInstance
- UAnimSingleNodeInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimSingleNodeInstance.h |
| Include | #include "Animation/AnimSingleNodeInstance.h" |
Syntax
UCLASS (Transient, NotBlueprintable, MinimalAPI)
class UAnimSingleNodeInstance : public UAnimInstance
Variables
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_ENABLE_DEPRECATION_WARNINGSTObjectPtr< class UAnimationAsset > | CurrentAsset | Current Asset being played | |
| FPostEvaluateAnimEvent | PostEvaluateAnimEvent |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAnimSingleNodeInstance
(
const FObjectInitializer& ObjectInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Disable compiler-generated deprecation warnings by implementing our own destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UAnimationAsset * | Get the currently used asset | ||
| void | GetBlendSpaceState
(
FVector& OutPosition, |
Gets the current state of any BlendSpace | |
| UAnimationAsset * | Get the currently playing asset. Can return NULL | ||
| float | Get the current playback time | ||
| FVector | Get the last filter output | ||
| TOptional< EAnimInterpolationType > | Get animation interpolation type override. If not set, it will not override. | ||
| float | GetLength () |
||
| const UMirrorDataTable * | |||
| float | GetPlayRate () |
Get the current play rate multiplier | |
| bool | IsLooping () |
Check whether we are currently looping | |
| bool | IsPlaying () |
Check whether we are currently playing | |
| bool | IsReverse () |
Check whether we are currently playing in reverse | |
| void | PlayAnim
(
bool bIsLooping, |
For AnimSequence specific | |
| void | RestartMontage
(
UAnimMontage* Montage, |
Custom evaluate pose | |
| void | SetAnimationAsset
(
UAnimationAsset* NewAsset, |
Set New Asset - calls InitializeAnimation, for now we need MeshComponent | |
| void | SetBlendSpacePosition
(
const FVector& InPosition |
||
| void | SetInterpolationOverride
(
TOptional< EAnimInterpolationType > InterpolationType |
Set animation interpolation type override. If not set, it will not override. | |
| void | SetLooping
(
bool bIsLooping |
||
| void | SetMirrorDataTable
(
const UMirrorDataTable* MirrorDataTable |
||
| void | SetMontageLoop
(
UAnimMontage* Montage, |
||
| void | SetMontagePreviewSlot
(
FName PreviewSlot |
Set the montage slot to preview | |
| void | SetPlaying
(
bool bIsPlaying |
||
| void | SetPlayRate
(
float InPlayRate |
||
| void | SetPosition
(
float InPosition, |
||
| void | SetPositionWithPreviousTime
(
float InPosition, |
||
| void | SetPreviewCurveOverride
(
const FName& PoseName, |
Set pose value | |
| void | SetReverse
(
bool bInReverse |
||
| void | StepBackward () |
||
| void | StepForward () |
AnimSequence specific | |
| void | StopAnim () |
||
| void | UpdateBlendspaceSamples
(
FVector InBlendInput |
Updates the blendspace samples list in the case of our asset being a blendspace | |
| void | UpdateMontageWeightForTimeSkip
(
float TimeDifference |
Updates montage weights based on a jump in time (as this wont be handled by SetPosition) |
Overridden from UAnimInstance
| Type | Name | Description | |
|---|---|---|---|
| FAnimInstanceProxy * | Override point for derived classes to create their own proxy objects (allows custom allocation) | ||
| void | Montage_Advance
(
float DeltaSeconds |
Advance montages | |
| void | The below functions are the native overrides for each phase Native initialization override point | ||
| void | Native Post Evaluate override point. | ||
| void | OnMontageInstanceStopped
(
FAnimMontageInstance& StoppedMontageInstance |