UPROPERTY(EditAnywhere) TSubclassOf<class UCameraShakeBase> cameraShakeFactory; UPROPERTY() UCameraShakeBase* cameraShake;
#include <Camera/PlayerCameraManager.h> #include <GameFramework/PlayerController.h> // ... if (cameraShake == nullptr || cameraShake->IsFinished()) // 중복 실행 방지 { cameraShake = UGameplayStatics::GetPlayerCameraManager(GetWorld(), 0)->StartCameraShake(cameraShakeFactory); }