UMotionWarpingComponent::AddOrUpdateWarpTargetFromComponent

Create and adds or update a target associated with a specified name

Choose your operating system:

Windows

macOS

Linux

References

Module

MotionWarping

Header

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

Include

#include "MotionWarpingComponent.h"

Source

/Engine/Plugins/Experimental/Animation/MotionWarping/Source/MotionWarping/Private/MotionWarpingComponent.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="Motion Warping")
void AddOrUpdateWarpTargetFromComponent
(
    FName WarpTargetName,
    const USceneComponent * Component,
    FName BoneName,
    bool bFollowComponent
)

Remarks

Create and adds or update a target associated with a specified name

that this will be one frame off if our owner ticks before the target actor. Add tick pre-requisites to avoid this.

Parameters

Parameter

Description

WarpTargetName

Warp target identifier

Component

Scene Component used to get the target transform

BoneName

Optional bone or socket in the component used to get the target transform.

bFollowComponent

Whether the target transform should update while the warping is active. Useful for tracking moving targets.