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 | ||
| 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 | ------------------- RETARGET POSES ----------------------- toggle current retarget pose | |
| FDelegateHandle | PreviewMeshReplacedDelegateHandle | ||
| TSharedPtr< SWindow > | RenamePoseWindow | ||
| FDelegateHandle | RetargeterReInitDelegateHandle | ||
| TObjectPtr< UIKRetargetAnimInstance > | SourceAnimInstance | ||
| UDebugSkelMeshComponent * | SourceSkelMeshComponent | ||
| TObjectPtr< UIKRetargetAnimInstance > | TargetAnimInstance | ||
| UDebugSkelMeshComponent * | TargetSkelMeshComponent |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddOffsetToMeshComponent
(
const FVector& Offset, |
||
| void | Bind callbacks to this IK Rig | ||
| bool | |||
| 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 ----------------------- 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) | |
| 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 > & | |||
| UPrimitiveComponent * | |||
| 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 | END viewport / editor tool mode general editor mode can be either viewing/editing source or target | ||
| 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 | Initialize
(
TSharedPtr< FIKRetargetEditor > InEditor, |
Initialize the editor | |
| bool | IsBoneRetargeted
(
const FName& BoneName, |
------------------- END SELECTION ----------------------- determine if bone in the specified skeleton is part of the retarget (in a mapped chain) | |
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsObjectInDetailsView
(
const UObject* Object |
||
| bool | Retargeter state | ||
| bool | |||
| bool | |||
| bool | |||
| void | OnPoseSelected
(
TSharedPtr< FName > InPoseName, |
||
| void | PromptUserToAssignIKRig
(
const ERetargetSourceOrTarget SourceOrTarget |
Prompt user to assign an IK Rig to this retargeter (either source or target), returns true if an IK Rig was assigned | |
| void | Force refresh all views in the editor | ||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| FReply | RenamePose () |
Rename retarget pose | |
| void | RenderSkeleton
(
FPrimitiveDrawInterface* PDI, |
END FGCObject interface 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
(
TSharedPtr< SIKRetargetAssetBrowser > InAssetBrowserView |
||
| void | SetChainsView
(
TSharedPtr< SIKRetargetChainMapList > InChainsView |
||
| void | SetDetailsObject
(
UObject* DetailsObject |
||
| void | SetDetailsObjects
(
const TArray< UObject* >& DetailsObjects |
||
| void | SetDetailsView
(
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
(
TSharedPtr< SIKRetargetHierarchy > InHierarchyView |
||
| void | SetOutputLogView
(
TSharedPtr< SIKRigOutputLog > InOutputLogView |
||
| void | SetRetargeterMode
(
ERetargeterOutputMode Mode |
Set viewport / editor tool mode | |
| void | |||
| void | SetRetargetPoseAmount
(
float InValue |
||
| void | SetRootSelected
(
const bool bIsSelected |
||
| void | SetSelectedMesh
(
UPrimitiveComponent* InComponent |
SELECTION - MESHES (viewport view) | |
| void | SetSourceOrTargetMode
(
ERetargetSourceOrTarget SourceOrTarget |
||
| void | Display global settings in the details panel | ||
| void | Display root settings in the details panel | ||
| void | |||
| void | |||
| void | Toggle retarget passes |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
------------------- END RETARGET POSES -----------------------FGCObject interface | |
| FString | Overload this method to report a name for your referencer |