Navigation
API > API/Plugins > API/Plugins/IKRigEditor > API/Plugins/IKRigEditor/RetargetEditor
Inheritance Hierarchy
- TSharedFromThis
- FGCObject
- FIKRetargetEditorController
References
| Module | IKRigEditor |
| Header | /Engine/Plugins/Animation/IKRig/Source/IKRigEditor/Public/RetargetEditor/IKRetargetEditorController.h |
| Include | #include "RetargetEditor/IKRetargetEditorController.h" |
Syntax
class FIKRetargetEditorController :
public TSharedFromThis< FIKRetargetEditorController > ,
private FGCObject
Remarks
A home for cross-widget communication to synchronize state across all tabs and viewport
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UIKRetargeterController > | AssetController | All modifications to the data model should go through this controller | |
| TWeakPtr< FIKRetargetEditor > | Editor | The persona toolkit | |
| FDelegateHandle | IKRigReplacedDelegateHandle | ||
| int32 | LastSelectedOpIndex | ||
| TSharedPtr< SEditableTextBox > | NewNameEditableText | ||
| TSharedPtr< SEditableTextBox > | NewPoseEditableText | ||
| TSharedPtr< SWindow > | NewPoseWindow | ||
| TUniquePtr< FRetargetPlaybackManager > | PlaybackManager | Manage playback of animation in the editor | |
| TSharedPtr< FIKRetargetPoseExporter > | PoseExporter | Import / export retarget poses | |
| TArray< TSharedPtr< FName > > | PoseNames | Toggle current retarget pose | |
| FDelegateHandle | PreviewMeshReplacedDelegateHandle | ||
| TSharedPtr< SWindow > | RenamePoseWindow | ||
| FDelegateHandle | RetargeterInitializedDelegateHandle | ||
| FDelegateHandle | RetargeterReInitDelegateHandle | ||
| TObjectPtr< UIKRetargetAnimInstance > | SourceAnimInstance | ||
| USceneComponent * | SourceRootComponent | This root component is used as a parent of the source skeletal mesh to allow us to translate the source. | |
| UDebugSkelMeshComponent * | SourceSkelMeshComponent | ||
| TObjectPtr< UIKRetargetAnimInstance > | TargetAnimInstance | ||
| UDebugSkelMeshComponent * | TargetSkelMeshComponent |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Bind callbacks to this IK Rig. | ||
| bool | |||
| bool | |||
| bool | |||
| void | CleanSelection
(
ERetargetSourceOrTarget SourceOrTarget |
||
| void | Clear the output log | ||
| void | ClearSelection
(
const bool bKeepBoneSelection |
||
| void | Close () |
Close the editor. | |
| FReply | |||
| FReply | |||
| void | EditBoneSelection
(
const TArray< FName >& InBoneNames, |
SELECTION - BONES (viewport or hierarchy view) | |
| void | EditChainSelection
(
const TArray< FName >& InChainNames, |
SELECTION - CHAINS (viewport or chains view) | |
| void | FixZeroHeightRetargetRoot
(
ERetargetSourceOrTarget SourceOrTarget |
Detect and auto-fix retarget pose that causes root height to be on the ground | |
| UIKRetargetAnimInstance * | GetAnimInstance
(
const ERetargetSourceOrTarget SourceOrTarget |
Viewport anim instance | |
| bool | GetCameraTargetForSelection
(
FSphere& OutTarget |
To frame selection when pressing "f" in viewport | |
| FName | GetChainNameFromBone
(
const FName& BoneName, |
Get the name of the chain that contains this bone | |
| const FRetargetSkeleton & | GetCurrentlyEditedSkeleton
(
const UIKRetargetProcessor& Processor |
Get the currently edited retarget skeleton | |
| FText | |||
| FSlateIcon | |||
| UDebugSkelMeshComponent * | Get currently edited debug skeletal mesh | ||
| FTransform | GetGlobalRetargetPoseOfBone
(
const ERetargetSourceOrTarget SourceOrTarget, |
Get world space pose of a bone (with component scale / offset applied) | |
| void | GetGlobalRetargetPoseOfImmediateChildren
(
const FRetargetSkeleton& RetargetSkeleton, |
Get world space positions of all immediate children of bone (with component scale / offset applied) | |
| FRetargetGlobalSettings & | |||
| ERetargetSelectionType | |||
| TObjectPtr< UIKRetargetBoneDetails > | GetOrCreateBoneDetailsObject
(
const FName& BoneName |
Factory to get/create bone details UObject | |
| ERetargeterOutputMode | |||
| FSlateIcon | |||
| FText | |||
| float | |||
| UIKRetargetProcessor * | Get the retargeter that is running in the viewport (which is a duplicate of the source asset) | ||
| bool | |||
| const TArray< FName > & | |||
| const TArray< FName > & | |||
| URetargetOpBase * | Op stack selection | ||
| USkeletalMesh * | GetSkeletalMesh
(
const ERetargetSourceOrTarget SourceOrTarget |
Get the USkeletalMesh we are transferring animation between (either source or target) | |
| UDebugSkelMeshComponent * | GetSkeletalMeshComponent
(
const ERetargetSourceOrTarget SourceOrTarget |
Viewport skeletal mesh | |
| const USkeleton * | GetSkeleton
(
const ERetargetSourceOrTarget SourceOrTarget |
Get the USkeleton we are transferring animation between (either source or target) | |
| ERetargetSourceOrTarget | General editor mode can be either viewing/editing source or target | ||
| void | Auto generate retarget pose | ||
| void | HandleAlignSelectedBones
(
const ERetargetAutoAlignMethod Method, |
||
| void | Delete retarget pose | ||
| void | Duplicate current retarget pose | ||
| void | HandleIKRigNeedsInitialized
(
UIKRigDefinition* ModifiedIKRig |
Callback when IK Rig asset requires reinitialization | |
| void | HandleIKRigReplaced
(
ERetargetSourceOrTarget SourceOrTarget |
Callback when IK Rig asset has been swapped out | |
| void | Create new retarget pose | ||
| void | HandlePreviewMeshReplaced
(
ERetargetSourceOrTarget SourceOrTarget |
Callback when Preview Mesh asset has been swapped out | |
| void | Rename retarget pose | ||
| void | Reset retarget pose | ||
| void | |||
| void | |||
| void | HandleRetargetChainAdded
(
UIKRigDefinition* ModifiedIKRig |
Callback when IK Rig asset's retarget chain's have been added or removed | |
| void | HandleRetargetChainRemoved
(
UIKRigDefinition* ModifiedIKRig, |
Callback when IK Rig asset's retarget chain has been removed | |
| void | HandleRetargetChainRenamed
(
UIKRigDefinition* ModifiedIKRig, |
Callback when IK Rig asset's retarget chain has been renamed | |
| void | Callback when IK Retargeter asset requires reinitialization | ||
| void | |||
| void | Initialize
(
TSharedPtr< FIKRetargetEditor > InEditor, |
Initialize the editor. | |
| bool | IsBoneRetargeted
(
const FName& BoneName, |
Determine if bone in the specified skeleton is part of the retarget (in a mapped chain) | |
| bool | |||
| bool | |||
| bool | Check if any bone is selected | ||
| bool | IsObjectInDetailsView
(
const UObject* Object |
||
| bool | Retargeter state | ||
| void | OnPoseSelected
(
TSharedPtr< FName > InPoseName, |
||
| void | Force refresh all views in the editor | ||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | Reinitialize retargeter without refreshing UI | ||
| FReply | RenamePose () |
||
| void | RenderSkeleton
(
FPrimitiveDrawInterface* PDI, |
Render the skeleton's in the viewport (either source or target) | |
| void | Reset the planting state of the IK (when scrubbing or animation loops over) | ||
| void | SetAssetBrowserView
(
const TSharedPtr< SIKRetargetAssetBrowser >& InAssetBrowserView |
||
| void | SetChainsView
(
const TSharedPtr< SIKRetargetChainMapList >& InChainsView |
||
| void | SetDetailsObject
(
UObject* DetailsObject |
||
| void | SetDetailsObjects
(
const TArray< UObject* >& DetailsObjects |
||
| void | SetDetailsView
(
const TSharedPtr< IDetailsView >& InDetailsView |
Store pointers to various tabs of UI, have to manage access to these because they can be null if the tabs are closed | |
| void | SetHierarchyView
(
const TSharedPtr< SIKRetargetHierarchy >& InHierarchyView |
||
| void | SetOpStackView
(
const TSharedPtr< SRetargetOpStack >& InOpStackView |
||
| void | SetOutputLogView
(
const TSharedPtr< SIKRigOutputLog >& InOutputLogView |
||
| void | SetRetargeterMode
(
ERetargeterOutputMode Mode |
Set viewport / editor tool mode. | |
| void | |||
| void | SetRetargetPoseAmount
(
float InValue |
||
| void | SetRootSelected
(
const bool bIsSelected |
||
| void | SetSourceOrTargetMode
(
ERetargetSourceOrTarget SourceOrTarget |
||
| void | Display settings in the details panel | ||
| void | |||
| void | |||
| void | UpdateMeshOffset
(
ERetargetSourceOrTarget SourceOrTarget |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |