30 CurrentlySelectedBone = NAME_None;
31 CurrentlySelectedBoneIdx = INDEX_NONE;
32 HandPropertyPath = FComponentPropertyPath();
33 TargetViewport =
nullptr;
42 FComponentPropertyPath HandPropertyPath;
44 FName CurrentlySelectedBone;
45 uint32 CurrentlySelectedBoneIdx;
48 FViewport* TargetViewport;
52 return Cast<UHandSocketComponent>(HandPropertyPath.GetComponent());;
57 const UHandSocketComponent* HandComp = CastChecked<const UHandSocketComponent>(VisProxy->Component.Get());
59 AActor* OldOwningActor = HandPropertyPath.GetParentOwningActor();
60 HandPropertyPath = FComponentPropertyPath(HandComp);
61 AActor* NewOwningActor = HandPropertyPath.GetParentOwningActor();
63 if (HandPropertyPath.IsValid())
65 if (OldOwningActor != NewOwningActor || OldHandComp != HandComp)
68 CurrentlySelectedBoneIdx = INDEX_NONE;
69 CurrentlySelectedBone = NAME_None;
75 HandPropertyPath = FComponentPropertyPath();
79 bool SaveAnimationAsset(
const FString& InAssetPath,
const FString& InAssetName);
82 bool GetCustomInputCoordinateSystem(
const FEditorViewportClient* ViewportClient, FMatrix& OutMatrix)
const override;
84 bool IsVisualizingArchetype()
const override;
86 virtual void DrawVisualization(
const UActorComponent* Component,
const FSceneView* View, FPrimitiveDrawInterface* PDI)
override;
87 virtual void DrawVisualizationHUD(
const UActorComponent* Component,
const FViewport* Viewport,
const FSceneView* View, FCanvas* Canvas)
override;
88 virtual bool VisProxyHandleClick(FEditorViewportClient* InViewportClient,
HComponentVisProxy* VisProxy,
const FViewportClick& Click)
override;
89 bool GetWidgetLocation(
const FEditorViewportClient* ViewportClient, FVector& OutLocation)
const override;
90 bool HandleInputDelta(FEditorViewportClient* ViewportClient, FViewport* Viewport, FVector& DeltaTranslate, FRotator& DeltaRotate, FVector& DeltaScale)
override;
91 virtual void EndEditing()
override;