UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkeletalBodySetup.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
8#include "SkeletalBodySetup.generated.h"
9
10USTRUCT()
12{
14
15
16 UPROPERTY()
17 FName ProfileName;
18
20 UPROPERTY(EditAnywhere, Category = PhysicalAnimation)
21 FPhysicalAnimationData PhysicalAnimationData;
22};
23
24UCLASS(MinimalAPI)
26{
28public:
30 {
31 return PhysicalAnimationData.FindByPredicate([ProfileName](const FPhysicalAnimationProfile& Profile){ return ProfileName == Profile.ProfileName; });
32 }
33
35 {
36 return PhysicalAnimationData.FindByPredicate([ProfileName](const FPhysicalAnimationProfile& Profile) { return ProfileName == Profile.ProfileName; });
37 }
38
40 {
41 return PhysicalAnimationData;
42 }
43
44#if WITH_EDITOR
45 virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent);
47
50
53
55
57
59#endif
60
61#if WITH_EDITORONLY_DATA
62 //dummy place for customization inside phat. Profiles are ordered dynamically and we need a static place for detail customization
63 UPROPERTY(EditAnywhere, Category = PhysicalAnimation)
65#endif
66
68 UPROPERTY(EditAnywhere, Category = BodySetup)
69 bool bSkipScaleFromAnimation;
70
72 UPROPERTY()
73 TArray<FPhysicalAnimationProfile> PhysicalAnimationData;
74};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition NameTypes.h:617
Definition Array.h:670
Definition BodySetup.h:128
Definition SkeletalBodySetup.h:26
const TArray< FPhysicalAnimationProfile > & GetPhysicalAnimationProfiles() const
Definition SkeletalBodySetup.h:39
FPhysicalAnimationProfile * FindPhysicalAnimationProfile(const FName ProfileName)
Definition SkeletalBodySetup.h:34
const FPhysicalAnimationProfile * FindPhysicalAnimationProfile(const FName ProfileName) const
Definition SkeletalBodySetup.h:29
Definition PhysicalAnimationComponent.h:18
Definition SkeletalBodySetup.h:12
FName ProfileName
Definition SkeletalBodySetup.h:17
Definition UnrealType.h:6865