UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LiveLinkRetargetAsset.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"
6#include "CoreMinimal.h"
7#include "UObject/NameTypes.h"
8#include "UObject/Object.h"
11
12#include "LiveLinkRetargetAsset.generated.h"
13
14class USkeleton;
15struct FBlendedCurve;
16struct FCompactPose;
21
22// Base class for retargeting live link data.
23UCLASS(Abstract, MinimalAPI)
25{
27
28 // Takes the supplied curve name and value and applies it to the blended curve (as approriate given the supplied skeleton
29 LIVELINKANIMATIONCORE_API void ApplyCurveValue(const USkeleton* Skeleton, const FName CurveName, const float CurveValue, FBlendedCurve& OutCurve) const;
30
31 // Builds curve data into OutCurve from the supplied live link frame
33
34 // Builds curve data into OutCurve from the supplied map of curve name to float
35 LIVELINKANIMATIONCORE_API void BuildCurveData(const TMap<FName, float>& CurveMap, const FCompactPose& InPose, FBlendedCurve& OutCurve) const;
36
37 // Called once when the retargeter is created
38 virtual void Initialize() {}
39
40 // Build OutPose from AnimationData if subject was from this type
41 virtual void BuildPoseFromAnimationData(float DeltaTime, const FLiveLinkSkeletonStaticData* InSkeletonData, const FLiveLinkAnimationFrameData* InFrameData, FCompactPose& OutPose) {}
42
43 // Build OutPose and OutCurve from the basic data. Called for every type of subjects
44 virtual void BuildPoseAndCurveFromBaseData(float DeltaTime, const FLiveLinkBaseStaticData* InBaseStaticData, const FLiveLinkBaseFrameData* InBaseFrameData, FCompactPose& OutPose, FBlendedCurve& OutCurve) {}
45};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition NameTypes.h:617
Definition UnrealString.h.inl:34
Definition LiveLinkRetargetAsset.h:25
Definition Object.h:95
Definition Skeleton.h:295
Definition AnimCurveTypes.h:1041
Definition BonePose.h:347
Definition LiveLinkAnimationTypes.h:50
Definition LiveLinkTypes.h:217
Definition LiveLinkTypes.h:256
Definition LiveLinkAnimationTypes.h:14