11{
12 Super::Notify(MeshComp, Animation, EventReference);
13
14 if (MeshComp == nullptr || MeshComp->GetWorld() == nullptr || MeshComp->GetWorld()->IsGameWorld() == false)
15 {
16 return;
17 }
18
19 AActor* OwnerActor = MeshComp->GetOwner();
20 check(OwnerActor);
21
22 UCharacterGhostEffectComponent* GhostEffectComponent = OwnerActor->FindComponentByClass<UCharacterGhostEffectComponent>();
23
24 if (GhostEffectComponent == nullptr)
25 {
26 LOG_ERROR(LogCK,
"%s가 해당 액터(%s)에 부착되어있지 않습니다. ",
NAMEOF(UCharacterGhostEffectComponent), *OwnerActor->GetName());
27 return;
28 }
29
31 {
32 GhostEffectComponent->InitializeGhostEffect(MeshComp);
34 GhostEffectComponent->SetGhostHoldDuration(
Duration);
36 GhostEffectComponent->PlayGhostEffect();
37 }
39 {
41 }
43 {
44 GhostEffectComponent->ForceEndGhostEffect();
45 }
46 else
47 {
49 }
50}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
bool bHideOriginalMeshWhileActive
Definition AnimNotify_GhostEffect.h:40
float FadeInDuration
Definition AnimNotify_GhostEffect.h:34
float FadeOutDuration
Definition AnimNotify_GhostEffect.h:37
float Duration
Definition AnimNotify_GhostEffect.h:31