UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LiveLinkRemapAsset.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Map.h"
8#include "UObject/NameTypes.h"
11
12#include "LiveLinkRemapAsset.generated.h"
13
14class UBlueprint;
15class UObject;
16struct FBlendedCurve;
17struct FCompactPose;
18struct FFrame;
23
24// Remap asset for data coming from Live Link. Allows simple application of bone transforms into current pose based on name remapping only
25UCLASS(Blueprintable, MinimalAPI)
27{
29
30 virtual ~ULiveLinkRemapAsset() {}
31
32 //~ Begin UObject Interface
33 LIVELINKANIMATIONCORE_API virtual void BeginDestroy() override;
34 //~ End UObject Interface
35
36 //~ Begin ULiveLinkRetargetAsset interface
37 LIVELINKANIMATIONCORE_API virtual void BuildPoseFromAnimationData(float DeltaTime, const FLiveLinkSkeletonStaticData* InSkeletonData, const FLiveLinkAnimationFrameData* InFrameData, FCompactPose& OutPose) override;
38 LIVELINKANIMATIONCORE_API virtual void BuildPoseAndCurveFromBaseData(float DeltaTime, const FLiveLinkBaseStaticData* InBaseStaticData, const FLiveLinkBaseFrameData* InBaseFrameData, FCompactPose& OutPose, FBlendedCurve& OutCurve) override;
39 //~ End ULiveLinkRetargetAsset interface
40
42 UFUNCTION(BlueprintNativeEvent, Category = "Live Link Remap")
43 LIVELINKANIMATIONCORE_API FName GetRemappedBoneName(FName BoneName) const;
44
46 UFUNCTION(BlueprintNativeEvent, Category = "Live Link Remap")
47 LIVELINKANIMATIONCORE_API FName GetRemappedCurveName(FName CurveName) const;
48
50 UFUNCTION(BlueprintNativeEvent, Category = "Live Link Remap")
51 LIVELINKANIMATIONCORE_API void RemapCurveElements(UPARAM(ref)TMap<FName, float>& CurveItems) const;
52
53private:
54
55 LIVELINKANIMATIONCORE_API void OnBlueprintClassCompiled(UBlueprint* TargetBlueprint);
56
57 // Name mapping between source bone name and transformed bone name
58 // (returned from GetRemappedBoneName)
59 TMap<FName, FName> BoneNameMap;
60
61 // Name mapping between source curve name and transformed curve name
62 // (returned from GetRemappedCurveName)
63 TMap<FName, FName> CurveNameMap;
64
65#if WITH_EDITOR
68#endif
69};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPARAM(...)
Definition ObjectMacros.h:748
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition IDelegateInstance.h:14
Definition NameTypes.h:617
Definition UnrealString.h.inl:34
Definition Blueprint.h:403
Definition LiveLinkRemapAsset.h:27
Definition LiveLinkRetargetAsset.h:25
Definition Object.h:95
Definition AnimCurveTypes.h:1041
Definition BonePose.h:347
Definition Stack.h:114
Definition LiveLinkAnimationTypes.h:50
Definition LiveLinkTypes.h:217
Definition LiveLinkTypes.h:256
Definition LiveLinkAnimationTypes.h:14