#include <AnimNotify_CameraShake.h>
|
| | UAnimNotify_CameraShake () |
| |
| virtual void | Notify (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, const FAnimNotifyEventReference &EventReference) override |
| |
◆ UAnimNotify_CameraShake()
| UAnimNotify_CameraShake::UAnimNotify_CameraShake |
( |
| ) |
|
9{
10#if WITH_EDITORONLY_DATA
11 NotifyColor = FColor(255, 128, 0);
12#endif
13}
◆ Notify()
| void UAnimNotify_CameraShake::Notify |
( |
USkeletalMeshComponent * |
MeshComp, |
|
|
UAnimSequenceBase * |
Animation, |
|
|
const FAnimNotifyEventReference & |
EventReference |
|
) |
| |
|
overridevirtual |
17{
18 Super::Notify(MeshComp, Animation, EventReference);
19
21 {
22 if (APawn* OwnerPawn = Cast<APawn>(MeshComp->GetOwner()))
23 {
24 if (const APlayerController* PC = Cast<APlayerController>(OwnerPawn->GetController()))
25 {
26 if (APlayerCameraManager* CameraManager = PC->PlayerCameraManager)
27 {
29 }
30 }
31 }
32 }
33}
float ShakeScale
Definition AnimNotify_CameraShake.h:27
TSubclassOf< UCameraShakeBase > CameraShakeClass
Definition AnimNotify_CameraShake.h:24
◆ CameraShakeClass
| TSubclassOf<UCameraShakeBase> UAnimNotify_CameraShake::CameraShakeClass |
|
protected |
◆ ShakeScale
| float UAnimNotify_CameraShake::ShakeScale = 1.0f |
|
protected |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: