Navigation
API > API/Plugins > API/Plugins/MotionWarping
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UMotionWarpingComponent
References
| Module | MotionWarping |
| Header | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Public/MotionWarpingComponent.h |
| Include | #include "MotionWarpingComponent.h" |
Syntax
UCLASS&40;ClassGroup&61;Movement, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UMotionWarpingComponent : public UActorComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSearchForWindowsInAnimsWithinMontages | Whether to look inside animations within montage when looking for warping windows | |
| TWeakObjectPtr< ACharacter > | CharacterOwner | Character this component belongs to | |
| TArray< TObjectPtr< URootMotionModifier > > | Modifiers | List of root motion modifiers | |
| FMotionWarpingPreUpdate | OnPreUpdate | Event called before Root Motion Modifiers are updated | |
| TOptional< FVector > | OriginalRootMotionAccum | ||
| TOptional< FVector > | WarpedRootMotionAccum | ||
| TArray< FMotionWarpingTarget > | WarpTargets |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMotionWarpingComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddModifier
(
URootMotionModifier* Modifier |
Add a new modifier | |
| URootMotionModifier * | AddModifierFromTemplate
(
URootMotionModifier* Template, |
||
| void | AddOrUpdateWarpTarget
(
const FMotionWarpingTarget& WarpTarget |
Adds or update a warp target | |
| void | AddOrUpdateWarpTargetFromComponent
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | |
| void | AddOrUpdateWarpTargetFromLocation
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | |
| void | AddOrUpdateWarpTargetFromLocationAndRotation
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | |
| void | AddOrUpdateWarpTargetFromTransform
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | |
| bool | ContainsModifier
(
const UAnimSequenceBase* Animation, |
Check if we contain a RootMotionModifier for the supplied animation and time range | |
| void | Mark all the modifiers as Disable | ||
| bool | FindAndUpdateWarpTarget
(
const FMotionWarpingTarget& WarpTarget |
||
| const FMotionWarpingTarget * | FindWarpTarget
(
const FName& WarpTargetName |
Find the target associated with a specified name | |
| ACharacter * | Gets the character this component belongs to | ||
| const TArray< URootMotionModifier * > & | GetModifiers () |
Returns the list of root motion modifiers | |
| FTransform | ProcessRootMotionPreConvertToWorld
(
const FTransform& InRootMotion, |
||
| int32 | RemoveWarpTarget
(
FName WarpTargetName |
Removes the warp target associated with the specified key | |
| void | Update
(
float DeltaSeconds |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | Initializes the component. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
Returns properties that are replicated for the lifetime of the actor channel |