Navigation
API > API/Plugins > API/Plugins/IKRig > API/Plugins/IKRig/Retargeter
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UIKRetargeter
References
| Module | IKRig |
| Header | /Engine/Plugins/Animation/IKRig/Source/IKRig/Public/Retargeter/IKRetargeter.h |
| Include | #include "Retargeter/IKRetargeter.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UIKRetargeter : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDebugDraw | Toggle debug drawing for retargeting in the viewport. | |
| bool | bDrawFinalGoals | Draw final IK goal locations. | |
| bool | bDrawSourceLocations | Draw goal locations from source skeleton. | |
| float | BoneDrawSize | The visual size of the bones in the viewport (saved between sessions). This is set from the viewport Character>Bones menu. | |
| float | ChainDrawSize | The visual size of the IK goals in the viewport. | |
| float | ChainDrawThickness | The thickness of lines on the IK goals in the viewport. | |
| TObjectPtr< UObject > | Controller | The controller responsible for managing this asset's data (all editor mutation goes through this) | |
| FVector | SourceMeshOffset | The offset applied to the source mesh in the editor viewport. | |
| FVector | TargetMeshOffset | The offset applied to the target mesh in the editor viewport. | |
| float | TargetMeshScale | Scale the target mesh in the viewport for easier visualization next to the source. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UIKRetargeter
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
END UObject. | |
| const TArray< TObjectPtr< URetargetChainSettings > > & | Get read-only access to the chain mapping. | ||
| const TObjectPtr< URetargetChainSettings > | GetChainMapByName
(
const FName& TargetChainName |
Get read-only access to the chain map for a given chain (null if chain not in retargeter) | |
| const FTargetChainSettings * | GetChainSettingsByName
(
const FName& TargetChainName |
Get read-only access to the chain settings for a given chain (null if chain not in retargeter) | |
| FTargetChainSettings | GetChainSettingsFromRetargetAsset
(
const UIKRetargeter* RetargetAsset, |
Returns the chain settings associated with a given target chain in an IK Retargeter Asset using the given profile name (optional) | |
| FTargetChainSettings | GetChainSettingsFromRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Returns the chain settings associated with a given target chain in the supplied Retarget Profile. | |
| FTargetChainSettings | GetChainUsingGoalFromRetargetAsset
(
const UIKRetargeter* RetargetAsset, |
Returns the chain settings associated with a given Goal in an IK Retargeter Asset using the given profile name (optional) | |
| const FRetargetProfile * | Get the current retarget profile (may be null) | ||
| const FIKRetargetPose * | GetCurrentRetargetPose
(
const ERetargetSourceOrTarget& SourceOrTarget |
Get read-only access to a retarget pose. | |
| FName | GetCurrentRetargetPoseName
(
const ERetargetSourceOrTarget& SourceOrTarget |
Get name of the current retarget pose. | |
| const FName | Get name of default pose. | ||
| const FRetargetGlobalSettings & | Get access to the global settings itself. | ||
| void | GetGlobalSettingsFromRetargetAsset
(
const UIKRetargeter* RetargetAsset, |
Returns the global settings in an IK Retargeter Asset using the given profile name (optional) | |
| FRetargetGlobalSettings | GetGlobalSettingsFromRetargetProfile
(
FRetargetProfile& RetargetProfile |
Returns the global settings in the supplied Retarget Profile. | |
| UIKRetargetGlobalSettings * | Get access to the global settings uobject. | ||
| const FRetargetProfile * | GetProfileByName
(
const FName& ProfileName |
Get the retarget profile by name (may be null) | |
| const FIKRetargetPose * | GetRetargetPoseByName
(
const ERetargetSourceOrTarget& SourceOrTarget, |
Get read-only access to a retarget pose. | |
| void | GetRootSettingsFromRetargetAsset
(
const UIKRetargeter* RetargetAsset, |
Returns the root settings in an IK Retargeter Asset using the given profile name (optional) | |
| FTargetRootSettings | GetRootSettingsFromRetargetProfile
(
FRetargetProfile& RetargetProfile |
Returns the root settings in the supplied Retarget Profile. | |
| URetargetRootSettings * | Get access to the root settings. | ||
| const UIKRigDefinition * | Get read-only access to the source IK Rig asset. | ||
| const FName | Get name of Source IK Rig property. | ||
| UIKRigDefinition * | Get read-write access to the source IK Rig asset. | ||
| const FName | Get name of Source Preview Mesh property. | ||
| void | GetSpeedCurveNames
(
TArray< FName >& OutSpeedCurveNames |
Get the names of the all the speed curves the retargeter will be looking for. | |
| const UIKRigDefinition * | Get read-only access to the target IK Rig asset. | ||
| const FName | Get name of Target IK Rig property. | ||
| UIKRigDefinition * | Get read-write access to the target IK Rig asset. | ||
| const FName | Get name of Target Preview Mesh property. | ||
| void | SetChainFKSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the chain FK settings in a retarget profile (will set bApplyChainSettings to true). | |
| void | SetChainIKSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the chain IK settings in a retarget profile (will set bApplyChainSettings to true). | |
| void | SetChainSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the chain settings in a retarget profile (will set bApplyChainSettings to true). | |
| void | SetChainSpeedPlantSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the chain Speed Plant settings in a retarget profile (will set bApplyChainSettings to true). | |
| void | SetGlobalSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the global settings in a retarget profile (will set bApplyGlobalSettings to true). | |
| void | SetRootSettingsInRetargetProfile
(
FRetargetProfile& RetargetProfile, |
Set the root settings in a retarget profile (will set bApplyRootSettings to true). |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostDuplicate
(
bool bDuplicateForPIE |
UObject. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bRetargetFK_DEPRECATED | ||
| bool | bRetargetIK_DEPRECATED | ||
| bool | bRetargetRoot_DEPRECATED | ||
| float | TargetActorOffset_DEPRECATED | ||
| float | TargetActorScale_DEPRECATED |