#include <AnimNotifyFootstep.h>
|
| virtual void | Notify (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, const FAnimNotifyEventReference &EventReference) override |
| |
| virtual FString | GetNotifyName_Implementation () const override |
| |
◆ GetNotifyName_Implementation()
| FString UAnimNotifyFootstep::GetNotifyName_Implementation |
( |
| ) |
const |
|
overridevirtual |
137{
138 FString Foot(TEXT("Right Foot"));
140 {
141 Foot = (TEXT("Left Foot"));
142 }
144 {
145 Foot = (TEXT("Both Feet"));
146 }
147 FString Name(Foot +TEXT("Footstep Type: "));
148 Name.Append(StaticEnum<EFootstepType>()->GetNameStringByValue(
static_cast<int64
>(
FootstepType)));
149 return Name;
150}
◆ Notify()
| void UAnimNotifyFootstep::Notify |
( |
USkeletalMeshComponent * | MeshComp, |
|
|
UAnimSequenceBase * | Animation, |
|
|
const FAnimNotifyEventReference & | EventReference ) |
|
overridevirtual |
11{
13
14 Super::Notify(MeshComp, Animation, EventReference);
15 if(MeshComp == nullptr){return;}
16 const AActor* MeshOwner = MeshComp->GetOwner();
17 if(MeshOwner == nullptr){return;}
18
19 TArray<UActorComponent*> Components = MeshOwner->GetComponentsByInterface(UFootstepInterface::StaticClass());
20 if(Components.IsEmpty()){return;}
21 for(UActorComponent* Component : Components)
22 {
24 if(Component == nullptr){return;}
26 {
28 }
30 {
32 }
33 }
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134}
◆ bLeftFoot
| bool UAnimNotifyFootstep::bLeftFoot = true |
◆ bRightFoot
| bool UAnimNotifyFootstep::bRightFoot = false |
◆ bSpawnSound
| bool UAnimNotifyFootstep::bSpawnSound = true |
◆ FootstepType
◆ PitchMultiplier
| float UAnimNotifyFootstep::PitchMultiplier = 1.0f |
◆ VolumeMultiplier
| float UAnimNotifyFootstep::VolumeMultiplier = 1.0f |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/FootstepFXComponent/Source/FootstepFXComponent/Public/AnimNotifyFootstep.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/FootstepFXComponent/Source/FootstepFXComponent/Private/AnimNotifyFootstep.cpp