17 static void Execute(TypeTween::ITween<FVector>& Tween,
const FHitMeshPulseData& PulseData, USkeletalMeshComponent* MeshComponent,
const FVector& OriginalScale)
20 const bool bPingPong = PulseData.
Mode == EHitPulseMode::PingPong;
21 const bool bCustomCurve = PulseData.
Mode == EHitPulseMode::CustomCurve;
22 const bool bStartFromOriginal = bPingPong || bCustomCurve;
26 .From(bStartFromOriginal ? OriginalScale : PulseScale)
27 .To(bStartFromOriginal ? PulseScale : OriginalScale)
30 .OnUpdate([WeakMesh = TWeakObjectPtr<USkeletalMeshComponent>(MeshComponent)](
const FVector& NewScale)
32 if (WeakMesh.IsValid() ==
false)
37 WeakMesh->SetRelativeScale3D(NewScale);