UIKRetargeter

Inheritance Hierarchy

References

Module

IKRig

Header

/Engine/Plugins/Animation/IKRig/Source/IKRig/Public/Retargeter/IKRetargeter.h

Include

#include "Retargeter/IKRetargeter.h"

Syntax

UCLASS(BlueprintType)
class UIKRetargeter : public UObject

Variables

Name Description

Public variable UProperty Category, EditAnywhere

bool

 

bDebugDraw

Toggle debug drawing for retargeting in the viewport.

Public variable UProperty Category, EditAnywhere

bool

 

bDrawFinalGoals

Draw final IK goal locations.

Public variable UProperty Category, EditAnywhere

bool

 

bDrawSourceLocations

Draw goal locations from source skeleton.

Public variable UProperty

float

 

BoneDrawSize

The visual size of the bones in the viewport (saved between sessions). This is set from the viewport Character>Bones menu.

Public variable UProperty Category, EditAnywhere

float

 

ChainDrawSize

The visual size of the IK goals in the viewport.

Public variable UProperty Category, EditAnywhere

float

 

ChainDrawThickness

The thickness of lines on the IK goals in the viewport.

Public variable UProperty Transient

TObjectPtr< UOb...

 

Controller

The controller responsible for managing this asset's data (all editor mutation goes through this)

Public variable UProperty Category, EditAnywhere

FVector

 

SourceMeshOffset

The offset applied to the source mesh in the editor viewport.

Public variable UProperty Category, EditAnywhere

FVector

 

TargetMeshOffset

The offset applied to the target mesh in the editor viewport.

Public variable UProperty Category, EditAnywhere, Meta

float

 

TargetMeshScale

Scale the target mesh in the viewport for easier visualization next to the source.

Constructors

Name Description

Public function

UIKRetargeter

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

void

 

DeclareConstructClasses

(
    TArray< FTopLevelAssetPath >& OutC...,
    const UClass* SpecificSubclass
)

END UObject.

Public function Const

const TArray...

 

GetAllChainSettings()

Get read-only access to the chain mapping.

Public function Const

const TObjec...

 

GetChainMapByName

(
    const FName& TargetChainName
)

Get read-only access to the chain map for a given chain (null if chain not in retargeter)

Public function Const

const FTarge...

 

GetChainSettingsByName

(
    const FName& TargetChainName
)

Get read-only access to the chain settings for a given chain (null if chain not in retargeter)

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

FTargetChain...

 

GetChainSettingsFromRetargetAsset

(
    const UIKRetargeter* RetargetA...,
    const FName TargetChainName,
    const FName OptionalProfileName
)

Returns the chain settings associated with a given target chain in an IK Retargeter Asset using the given profile name (optional)

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

FTargetChain...

 

GetChainSettingsFromRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FName TargetChainName
)

Returns the chain settings associated with a given target chain in the supplied Retarget Profile.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

FTargetChain...

 

GetChainUsingGoalFromRetargetAsset

(
    const UIKRetargeter* RetargetA...,
    const FName IKGoalName
)

Returns the chain settings associated with a given Goal in an IK Retargeter Asset using the given profile name (optional)

Public function Const

const FRetar...

 

GetCurrentProfile()

Get the current retarget profile (may be null)

Public function Const

const FIKRet...

 

GetCurrentRetargetPose

(
    const ERetargetSourceOrTarget& Sou...
)

Get read-only access to a retarget pose.

Public function Const

FName

 

GetCurrentRetargetPoseName

(
    const ERetargetSourceOrTarget& Sou...
)

Get name of the current retarget pose.

Public function Static

const FName

 

GetDefaultPoseName()

Get name of default pose.

Public function Const

const FRetar...

 

GetGlobalSettings()

Get access to the global settings itself.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

void

 

GetGlobalSettingsFromRetargetAsset

(
    const UIKRetargeter* RetargetA...,
    const FName OptionalProfileName,
    FRetargetGlobalSettings& OutSettin...
)

Returns the global settings in an IK Retargeter Asset using the given profile name (optional)

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

FRetargetGlo...

 

GetGlobalSettingsFromRetargetProfile

(
    FRetargetProfile& RetargetProfile
)

Returns the global settings in the supplied Retarget Profile.

Public function Const

UIKRetargetG...

 

GetGlobalSettingsUObject()

Get access to the global settings uobject.

Public function Const

const FRetar...

 

GetProfileByName

(
    const FName& ProfileName
)

Get the retarget profile by name (may be null)

Public function Const

const FIKRet...

 

GetRetargetPoseByName

(
    const ERetargetSourceOrTarget& Sou...,
    const FName PoseName
)

Get read-only access to a retarget pose.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

void

 

GetRootSettingsFromRetargetAsset

(
    const UIKRetargeter* RetargetA...,
    const FName OptionalProfileName,
    FTargetRootSettings& OutSettings
)

Returns the root settings in an IK Retargeter Asset using the given profile name (optional)

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

FTargetRootS...

 

GetRootSettingsFromRetargetProfile

(
    FRetargetProfile& RetargetProfile
)

Returns the root settings in the supplied Retarget Profile.

Public function Const

URetargetRoo...

 

GetRootSettingsUObject()

Get access to the root settings.

Public function Const

const UIKRig...

 

GetSourceIKRig()

Get read-only access to the source IK Rig asset.

Public function Static

const FName

 

GetSourceIKRigPropertyName()

Get name of Source IK Rig property.

Public function Const

UIKRigDefini...

 

GetSourceIKRigWriteable()

Get read-write access to the source IK Rig asset.

Public function Static

const FName

 

GetSourcePreviewMeshPropertyName()

Get name of Source Preview Mesh property.

Public function Const

void

 

GetSpeedCurveNames

(
    TArray< FName >& OutSpeedCurveName...
)

Get the names of the all the speed curves the retargeter will be looking for.

Public function Const

const UIKRig...

 

GetTargetIKRig()

Get read-only access to the target IK Rig asset.

Public function Static

const FName

 

GetTargetIKRigPropertyName()

Get name of Target IK Rig property.

Public function Const

UIKRigDefini...

 

GetTargetIKRigWriteable()

Get read-write access to the target IK Rig asset.

Public function Static

const FName

 

GetTargetPreviewMeshPropertyName()

Get name of Target Preview Mesh property.

Public function Static UFunction BlueprintCallable, Category

void

 

SetChainFKSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FTargetChainFKSettings& FKSe...,
    const FName TargetChainName
)

Set the chain FK settings in a retarget profile (will set bApplyChainSettings to true).

Public function Static UFunction BlueprintCallable, Category

void

 

SetChainIKSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FTargetChainIKSettings& IKSe...,
    const FName TargetChainName
)

Set the chain IK settings in a retarget profile (will set bApplyChainSettings to true).

Public function Static UFunction BlueprintCallable, Category

void

 

SetChainSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FTargetChainSettings& ChainS...,
    const FName TargetChainName
)

Set the chain settings in a retarget profile (will set bApplyChainSettings to true).

Public function Static UFunction BlueprintCallable, Category

void

 

SetChainSpeedPlantSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FTargetChainSpeedPlantSetting...,
    const FName TargetChainName
)

Set the chain Speed Plant settings in a retarget profile (will set bApplyChainSettings to true).

Public function Static UFunction BlueprintCallable, Category

void

 

SetGlobalSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FRetargetGlobalSettings& Glo...
)

Set the global settings in a retarget profile (will set bApplyGlobalSettings to true).

Public function Static UFunction BlueprintCallable, Category

void

 

SetRootSettingsInRetargetProfile

(
    FRetargetProfile& RetargetProfile,
    const FTargetRootSettings& RootSet...
)

Set the root settings in a retarget profile (will set bApplyRootSettings to true).

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

UObject.

Deprecated Variables

Name Description

Public variable UProperty

bool

 

bRetargetFK_DEPRECATED

Public variable UProperty

bool

 

bRetargetIK_DEPRECATED

Public variable UProperty

bool

 

bRetargetRoot_DEPRECATED

Public variable UProperty

float

 

TargetActorOffset_DEPRECATED

Public variable UProperty

float

 

TargetActorScale_DEPRECATED

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel