Navigation
API > API/Plugins > API/Plugins/MotionWarping
| Name | UMotionWarpingComponent |
| Type | class |
| Header File | /Engine/Plugins/Animation/MotionWarping/Source/MotionWarping/Public/MotionWarpingComponent.h |
| Include Path | #include "MotionWarpingComponent.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=Movement, Meta=(BlueprintSpawnableComponent))
class UMotionWarpingComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UMotionWarpingComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMotionWarpingComponent
(
const FObjectInitializer& ObjectInitializer |
MotionWarpingComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSearchForWindowsInAnimsWithinMontages | bool | Whether to look inside animations within montage when looking for warping windows | MotionWarpingComponent.h |
|
| OnPreUpdate | FMotionWarpingPreUpdate | Event called before Root Motion Modifiers are updated | MotionWarpingComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddModifier
(
URootMotionModifier* Modifier |
Add a new modifier | MotionWarpingComponent.h | |
URootMotionModifier * AddModifierFromTemplate
(
URootMotionModifier* Template, |
MotionWarpingComponent.h | ||
void AddOrUpdateWarpTarget
(
const FMotionWarpingTarget& WarpTarget |
Adds or update a warp target | MotionWarpingComponent.h |
|
void AddOrUpdateWarpTargetFromComponent
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | MotionWarpingComponent.h |
|
void AddOrUpdateWarpTargetFromComponent
(
FName WarpTargetName, |
@TODO: Deprecate this. | MotionWarpingComponent.h | |
void AddOrUpdateWarpTargetFromLocation
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | MotionWarpingComponent.h |
|
void AddOrUpdateWarpTargetFromLocationAndRotation
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | MotionWarpingComponent.h |
|
void AddOrUpdateWarpTargetFromTransform
(
FName WarpTargetName, |
Create and adds or update a target associated with a specified name | MotionWarpingComponent.h |
|
void AddSwitchOffCondition
(
FName WarpTargetName, |
MotionWarpingComponent.h |
|
|
bool ContainsModifier
(
const UAnimSequenceBase* Animation, |
Check if we contain a RootMotionModifier for the supplied animation and time range | MotionWarpingComponent.h | |
T * CreateOwnerAdapter () |
MotionWarpingComponent.h | ||
UMotionWarpingBaseAdapter * CreateOwnerAdapter
(
TSubclassOf< UMotionWarpingBaseAdapter > AdapterClass |
Set a new adapter of a particular type | MotionWarpingComponent.h | |
void DisableAllRootMotionModifiers() |
Mark all the modifiers as Disable | MotionWarpingComponent.h |
|
FSwitchOffConditionData * FindSwitchOffConditionData
(
FName WarpTargetName |
MotionWarpingComponent.h | ||
const FMotionWarpingTarget * FindWarpTarget
(
const FName& WarpTargetName |
Find the target associated with a specified name | MotionWarpingComponent.h | |
ACharacter * GetCharacterOwner() |
Gets the Character this component belongs to. Returns null if not owned by a Character actor. | MotionWarpingComponent.h | |
const TArray< URootMotionModifier * > & GetModifiers() |
Returns the list of root motion modifiers | MotionWarpingComponent.h | |
UMotionWarpingBaseAdapter * GetOwnerAdapter() |
Get the current adapter to the owner | MotionWarpingComponent.h | |
int32 RemoveAllWarpTargets() |
Removes all warp targets | MotionWarpingComponent.h |
|
void RemoveSwitchOffConditions
(
FName WarpTargetName |
MotionWarpingComponent.h | ||
int32 RemoveWarpTarget
(
FName WarpTargetName |
Removes the warp target associated with the specified key | MotionWarpingComponent.h |
|
| Removes multiple warp targets | MotionWarpingComponent.h |
|
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeComponent() |
MotionWarpingComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
MotionWarpingComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool FindAndUpdateWarpTarget
(
const FMotionWarpingTarget& WarpTarget |
MotionWarpingComponent.h | ||
FTransform ProcessRootMotionPreConvertToWorld
(
const FTransform& InRootMotion, |
MotionWarpingComponent.h | ||
void UpdateSwitchOffConditions() |
MotionWarpingComponent.h | ||
void UpdateWithContext
(
const FMotionWarpingUpdateContext& Context, |
MotionWarpingComponent.h |