URootMotionModifier

[URootMotionModifier](API\Plugins\MotionWarping\URootMotionModifier).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MotionWarping

Header

/Engine/Plugins/Experimental/Animation/MotionWarping/Source/MotionWarping/Public/RootMotionModifier.h

Include

#include "RootMotionModifier.h"

Syntax

UCLASS(Abstract, BlueprintType, EditInlineNew)
class URootMotionModifier : public UObject

Remarks

Variables

Name Description

Public variable UProperty Category BlueprintReadOnly Transient

float

 

ActualStartTime

Actual playback time when the modifier becomes active

Public variable UProperty Category BlueprintReadOnly

TWeakObjectPtr<...

 

Animation

Source of the root motion we are warping

Public variable UProperty Category BlueprintReadOnly

bool

 

bInLocalSpace

Whether this modifier runs before the extracted root motion is converted to world space or after

Public variable UProperty Category BlueprintReadOnly

float

 

CurrentPosition

Current playback time of the animation

Public variable UProperty Category BlueprintReadOnly

float

 

EndTime

End time of the warping window

Public variable UProperty

FOnRootMotionMo...

 

OnActivateDelegate

Delegate called when this modifier is activated (starts affecting the root motion)

Public variable UProperty

FOnRootMotionMo...

 

OnDeactivateDelegate

Delegate called when this modifier is deactivated (stops affecting the root motion)

Public variable UProperty

FOnRootMotionMo...

 

OnUpdateDelegate

Delegate called when this modifier updates while active (affecting the root motion)

Public variable UProperty Category BlueprintReadOnly

float

 

PreviousPosition

Previous playback time of the animation

Public variable UProperty Category BlueprintReadOnly

float

 

StartTime

Start time of the warping window

Public variable UProperty Category BlueprintReadOnly Transient

FTransform

 

StartTransform

Character owner transform at the time this modifier becomes active

Public variable UProperty Category BlueprintReadOnly

float

 

Weight

Current blend weight of the animation

Constructors

Name Description

Public function

URootMotionModifier

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

const UAnimS...

 

GetAnimation()

Public function Const

ACharacter &...

 

GetCharacterOwner()

Returns a pointer to the character that owns the component that owns this modifier

Public function Const

UMotionWarpi...

 

GetOwnerComponent()

Returns a pointer to the component that owns this modifier

Public function Const

ERootMotionM...

 

GetState()

Returns the state of the modifier

Public function Virtual

void

 

OnStateChanged

(
    ERootMotionModifierState LastState
)

Called when the state of the modifier changes

Public function Virtual

FTransform

 

ProcessRootMotion

(
    const FTransform& InRootMotion,
    float DeltaSeconds
)

Public function

void

 

SetState

(
    ERootMotionModifierState NewState
)

Sets the state of the modifier

Public function Virtual

void

 

Update()