UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNode_ModifyBone.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
UObject/ObjectMacros.h
"
7
#include "
BoneContainer.h
"
8
#include "
BonePose.h
"
9
#include "
BoneControllers/AnimNode_SkeletalControlBase.h
"
10
#include "AnimNode_ModifyBone.generated.h"
11
12
class
USkeletalMeshComponent;
13
14
UENUM
(BlueprintType)
15
enum
EBoneModificationMode
:
int
16
{
18
BMM_Ignore
UMETA
(DisplayName =
"Ignore"
),
19
21
BMM_Replace
UMETA
(DisplayName =
"Replace Existing"
),
22
24
BMM_Additive
UMETA
(DisplayName =
"Add to Existing"
)
25
};
26
30
USTRUCT
(BlueprintInternalUseOnly)
31
struct
FAnimNode_ModifyBone
:
public
FAnimNode_SkeletalControlBase
32
{
33
GENERATED_USTRUCT_BODY
()
34
35
36
UPROPERTY
(EditAnywhere, Category=
SkeletalControl
)
37
FBoneReference
BoneToModify;
38
40
UPROPERTY
(EditAnywhere, BlueprintReadWrite, Category=
Translation
, meta=(PinShownByDefault))
41
FVector
Translation
;
42
44
UPROPERTY
(EditAnywhere, BlueprintReadWrite, Category=
Rotation
, meta=(PinShownByDefault))
45
FRotator
Rotation
;
46
48
UPROPERTY
(EditAnywhere, BlueprintReadWrite, Category=
Scale
, meta=(PinShownByDefault))
49
FVector
Scale
;
50
52
UPROPERTY
(EditAnywhere, Category=
Translation
)
53
TEnumAsByte
<
EBoneModificationMode
> TranslationMode;
54
56
UPROPERTY
(EditAnywhere, Category=
Rotation
)
57
TEnumAsByte
<
EBoneModificationMode
> RotationMode;
58
60
UPROPERTY
(EditAnywhere, Category=
Scale
)
61
TEnumAsByte
<
EBoneModificationMode
> ScaleMode;
62
64
UPROPERTY
(EditAnywhere, Category=
Translation
)
65
TEnumAsByte
<
enum
EBoneControlSpace
> TranslationSpace;
66
68
UPROPERTY
(EditAnywhere, Category=
Rotation
)
69
TEnumAsByte
<
enum
EBoneControlSpace
> RotationSpace;
70
72
UPROPERTY
(EditAnywhere, Category=
Scale
)
73
TEnumAsByte
<
enum
EBoneControlSpace
> ScaleSpace;
74
75
ANIMGRAPHRUNTIME_API
FAnimNode_ModifyBone
();
76
77
// FAnimNode_Base interface
78
ANIMGRAPHRUNTIME_API
virtual
void
GatherDebugData(
FNodeDebugData
& DebugData)
override
;
79
// End of FAnimNode_Base interface
80
81
// FAnimNode_SkeletalControlBase interface
82
ANIMGRAPHRUNTIME_API
virtual
void
EvaluateSkeletalControl_AnyThread(
FComponentSpacePoseContext
&
Output
,
TArray
<
FBoneTransform
>&
OutBoneTransforms
)
override
;
83
ANIMGRAPHRUNTIME_API
virtual
bool
IsValidToEvaluate(const
USkeleton
*
Skeleton
, const
FBoneContainer
& RequiredBones)
override
;
84
// End of FAnimNode_SkeletalControlBase interface
85
86
private
:
87
// FAnimNode_SkeletalControlBase interface
88
ANIMGRAPHRUNTIME_API
virtual
void
InitializeBoneReferences(const
FBoneContainer
& RequiredBones)
override
;
89
// End of FAnimNode_SkeletalControlBase interface
90
};
EBoneModificationMode
EBoneModificationMode
Definition
AnimNode_ModifyBone.h:16
UMETA
@ UMETA
Definition
AnimNode_ModifyBone.h:18
AnimNode_SkeletalControlBase.h
EBoneControlSpace
EBoneControlSpace
Definition
AnimTypes.h:60
BoneContainer.h
BonePose.h
ETransformConstraintType::Translation
@ Translation
ETransformConstraintType::Scale
@ Scale
ETransformConstraintType::Rotation
@ Rotation
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
UENUM
#define UENUM(...)
Definition
ObjectMacros.h:749
USTRUCT
#define USTRUCT(...)
Definition
ObjectMacros.h:746
GENERATED_USTRUCT_BODY
#define GENERATED_USTRUCT_BODY(...)
Definition
ObjectMacros.h:767
EUserSceneTextureEvent::Output
@ Output
ESkeletalMeshAsyncProperties::Skeleton
@ Skeleton
TArray
Definition
Array.h:670
TEnumAsByte
Definition
EnumAsByte.h:22
USkeleton
Definition
Skeleton.h:295
FAnimNode_ModifyBone
Definition
AnimNode_ModifyBone.h:32
FAnimNode_SkeletalControlBase
Definition
AnimNode_SkeletalControlBase.h:22
FBoneContainer
Definition
BoneContainer.h:192
FBoneReference
Definition
BoneReference.h:14
FBoneTransform
Definition
BonePose.h:16
FComponentSpacePoseContext
Definition
AnimNodeBase.h:600
FNodeDebugData
Definition
AnimNodeBase.h:642
UE::Math::TRotator< double >
UE::Math::TVector< double >
Engine
Source
Runtime
AnimGraphRuntime
Public
BoneControllers
AnimNode_ModifyBone.h
Generated by
1.9.8