Space Plunder
Loading...
Searching...
No Matches
UALSAnimNotifyCameraShake Class Reference

#include <ALSAnimNotifyCameraShake.h>

Inheritance diagram for UALSAnimNotifyCameraShake:

Public Attributes

TSubclassOf< UCameraShakeBase > ShakeClass
 
float Scale = 1.0f
 

Private Member Functions

virtual void Notify (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, const FAnimNotifyEventReference &EventReference) override
 

Detailed Description

Generic camera shake animation notify for pawns with controller enabled

Member Function Documentation

◆ Notify()

void UALSAnimNotifyCameraShake::Notify ( USkeletalMeshComponent * MeshComp,
UAnimSequenceBase * Animation,
const FAnimNotifyEventReference & EventReference )
overrideprivatevirtual
12{
13 Super::Notify(MeshComp, Animation, EventReference);
14
15 APawn* OwnerPawn = Cast<APawn>(MeshComp->GetOwner());
16 if (OwnerPawn)
17 {
18 APlayerController* OwnerController = Cast<APlayerController>(OwnerPawn->GetController());
19 if (OwnerController)
20 {
21 OwnerController->ClientStartCameraShake(ShakeClass, Scale);
22 }
23 }
24}
float Scale
Definition ALSAnimNotifyCameraShake.h:29
TSubclassOf< UCameraShakeBase > ShakeClass
Definition ALSAnimNotifyCameraShake.h:26

Member Data Documentation

◆ Scale

float UALSAnimNotifyCameraShake::Scale = 1.0f

◆ ShakeClass

TSubclassOf<UCameraShakeBase> UALSAnimNotifyCameraShake::ShakeClass

The documentation for this class was generated from the following files: