Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UAnimNotify_GhostEffect 클래스 참조

#include <AnimNotify_GhostEffect.h>

UAnimNotify_GhostEffect에 대한 상속 다이어그램 :
Inheritance graph
UAnimNotify_GhostEffect에 대한 협력 다이어그램:
Collaboration graph

Protected 멤버 함수

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

Protected 속성

EAnimNotifyGhostEffectAction Action = EAnimNotifyGhostEffectAction::Apply
 
float Duration = 0.25f
 
float FadeInDuration = 0.15f
 
float FadeOutDuration = 0.15f
 
bool bHideOriginalMeshWhileActive = false
 

멤버 함수 문서화

◆ GetNotifyName_Implementation()

FString UAnimNotify_GhostEffect::GetNotifyName_Implementation ( ) const
overrideprotectedvirtual
54{
56 {
57 return TEXT("Ghost Effect Apply");
58 }
59
61 {
62 return TEXT("Ghost Effect Remove");
63 }
64 else
65 {
66 return TEXT("Ghost Effect Force End");
67 }
68}
EAnimNotifyGhostEffectAction Action
Definition AnimNotify_GhostEffect.h:28

다음을 참조함 : Action, Apply, Remove.

◆ Notify()

void UAnimNotify_GhostEffect::Notify ( USkeletalMeshComponent *  MeshComp,
UAnimSequenceBase *  Animation,
const FAnimNotifyEventReference &  EventReference 
)
overrideprotectedvirtual
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);
33 GhostEffectComponent->SetGhostFadeInDuration(FadeInDuration);
34 GhostEffectComponent->SetGhostHoldDuration(Duration);
36 GhostEffectComponent->PlayGhostEffect();
37 }
39 {
40 GhostEffectComponent->RemoveGhostEffect(FadeOutDuration);
41 }
43 {
44 GhostEffectComponent->ForceEndGhostEffect();
45 }
46 else
47 {
48 LOG_ERROR(LogCK, "처리될 수 없는 예외사항. ");
49 }
50}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41
#define NAMEOF(Type)
Definition CK_UE.h:31
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
Definition CharacterGhostEffectComponent.h:43
void InitializeGhostEffect(USkeletalMeshComponent *InSourceMeshComponent)
Definition CharacterGhostEffectComponent.cpp:46
void SetGhostFadeInDuration(float Value)
Definition CharacterGhostEffectComponent.cpp:350
void SetHideOriginalMeshWhileActive(bool bShouldHide)
Definition CharacterGhostEffectComponent.cpp:362
void ForceEndGhostEffect()
Definition CharacterGhostEffectComponent.cpp:134
void SetGhostHoldDuration(float Value)
Definition CharacterGhostEffectComponent.cpp:344
void RemoveGhostEffect(float InFadeOutDuration)
Definition CharacterGhostEffectComponent.cpp:108
void PlayGhostEffect()
Definition CharacterGhostEffectComponent.cpp:62

다음을 참조함 : Action, Apply, bHideOriginalMeshWhileActive, Duration, FadeInDuration, FadeOutDuration, ForceEnd, UCharacterGhostEffectComponent::ForceEndGhostEffect(), UCharacterGhostEffectComponent::InitializeGhostEffect(), LOG_ERROR, NAMEOF, UCharacterGhostEffectComponent::PlayGhostEffect(), Remove, UCharacterGhostEffectComponent::RemoveGhostEffect(), UCharacterGhostEffectComponent::SetGhostFadeInDuration(), UCharacterGhostEffectComponent::SetGhostHoldDuration(), UCharacterGhostEffectComponent::SetHideOriginalMeshWhileActive().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ Action

EAnimNotifyGhostEffectAction UAnimNotify_GhostEffect::Action = EAnimNotifyGhostEffectAction::Apply
protected

다음에 의해서 참조됨 : GetNotifyName_Implementation(), Notify().

◆ bHideOriginalMeshWhileActive

bool UAnimNotify_GhostEffect::bHideOriginalMeshWhileActive = false
protected

다음에 의해서 참조됨 : Notify().

◆ Duration

float UAnimNotify_GhostEffect::Duration = 0.25f
protected

다음에 의해서 참조됨 : Notify().

◆ FadeInDuration

float UAnimNotify_GhostEffect::FadeInDuration = 0.15f
protected

다음에 의해서 참조됨 : Notify().

◆ FadeOutDuration

float UAnimNotify_GhostEffect::FadeOutDuration = 0.15f
protected

다음에 의해서 참조됨 : Notify().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: