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

#include <CharacterGhostEffectComponent.h>

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

Public 멤버 함수

 UCharacterGhostEffectComponent ()
 
void InitializeGhostEffect (USkeletalMeshComponent *InSourceMeshComponent)
 
void PlayGhostEffect ()
 
void StopGhostEffect ()
 
void RemoveGhostEffect (float InFadeOutDuration)
 
void ForceEndGhostEffect ()
 
bool StartTravelGhost (const FVector &Direction)
 
void StopTravelGhost (bool bImmediate=false)
 
void SetGhostOpacity (float Value)
 
void SetGhostEmissiveIntensity (float Value)
 
void SetGhostFresnelPower (float Value)
 
void SetGhostFresnelIntensity (float Value)
 
void SetGhostColor (FLinearColor Color)
 
void SetGhostHoldDuration (float Value)
 
void SetGhostFadeInDuration (float Value)
 
void SetGhostFadeOutDuration (float Value)
 
void SetHideOriginalMeshWhileActive (bool bShouldHide)
 
FORCEINLINE EGhostEffectState GetGhostEffectState () const
 
FORCEINLINE UPoseableMeshComponent * GetGhostMeshComponent () const
 

Protected 멤버 함수

virtual void BeginPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 

Protected 속성

TObjectPtr< UMaterialInterface > GhostMaterial = nullptr
 
float FadeInDuration = 0.35f
 
float HoldDuration = 0.25f
 
float FadeOutDuration = 0.35f
 
float MaxOpacity = 0.5f
 
bool bHideOriginalMeshWhileActive = false
 

Private 멤버 함수

bool ResolveSourceMeshComponent ()
 
bool EnsureGhostMeshComponent ()
 
bool PrepareGhostMeshComponent ()
 
void CaptureGhostProjectionPose ()
 
void ApplyGhostMaterial ()
 
void SetGhostMeshVisible (bool bVisible)
 
void SetOriginalMeshHidden (bool bHidden)
 
void RestoreOriginalMeshVisibility ()
 
USkeletalMeshComponent * GetPlayerWeaponMeshComponent () const
 
void SetCurrentState (EGhostEffectState NewState)
 
void StartFadeIn ()
 
void StartFadeOut (float InStartOpacity)
 
void UpdateFade ()
 
void StartHolding ()
 
void FinishHolding ()
 
void ClearHoldTimer ()
 
void ClearFadeTimer ()
 
void ClearEffectTimers ()
 
void CaptureTrailSample (const FVector &Direction)
 
void UpdateTravelGhost ()
 

Private 속성

const FName GhostColor = TEXT("GhostColor")
 
const FName Opacity = TEXT("Opacity")
 
const FName EmissiveIntensity = TEXT("EmissiveIntensity")
 
const FName FresnelPower = TEXT("FresnelPower")
 
const FName FresnelIntensity = TEXT("FresnelIntensity")
 
TObjectPtr< USkeletalMeshComponent > SourceMeshComponent = nullptr
 
TObjectPtr< UPoseableMeshComponent > GhostMeshComponent = nullptr
 
TArray< TObjectPtr< UMaterialInstanceDynamic > > GhostMaterialInstances
 
TArray< FGhostTrailSample > TrailSamples
 
EGhostEffectState CurrentState = EGhostEffectState::Inactive
 
double StateStartTime = 0.0
 
float CurrentOpacity = 0.0f
 
float FadeOutStartOpacity = 0.0f
 
float FadeStartOpacity = 0.0f
 
float FadeTargetOpacity = 0.0f
 
float FadeDuration = 0.0f
 
FTimerHandle HoldTimerHandle
 
FTimerHandle FadeTimerHandle
 
bool bOriginalVisibility = true
 
bool bOriginalHiddenInGame = false
 
bool bOriginalWeaponVisibility = true
 
bool bOriginalWeaponHiddenInGame = false
 
bool bHasStoredOriginalVisibility = false
 
bool bHasStoredWeaponVisibility = false
 
FTimerHandle TrailTimerHandle
 
FVector LastTrailLocation = FVector::ZeroVector
 
double LastTrailTime = 0.0
 
int32 NextTrailIndex = 0
 
bool bTravelActive = false
 
EVisibilityBasedAnimTickOption OriginalAnimTickOption {}
 

정적 Private 속성

static constexpr int32 MaxTrailSamples = 4
 
static constexpr float TrailLifetime = 0.12f
 
static constexpr float TrailInterval = 0.03f
 

상세한 설명

단일 잔상과 이동 경로 잔상의 수명 및 원본 메시 표시를 관리합니다.

생성자 & 소멸자 문서화

◆ UCharacterGhostEffectComponent()

UCharacterGhostEffectComponent::UCharacterGhostEffectComponent ( )
22{
23 PrimaryComponentTick.bCanEverTick = false;
24 PrimaryComponentTick.bStartWithTickEnabled = false;
25}

멤버 함수 문서화

◆ ApplyGhostMaterial()

void UCharacterGhostEffectComponent::ApplyGhostMaterial ( )
private
453{
455
456 if (GhostMeshComponent == nullptr || GhostMaterial == nullptr)
457 {
458 return;
459 }
460
461 const int32 SourceMaterialCount = SourceMeshComponent ? SourceMeshComponent->GetNumMaterials() : 0;
462 const int32 GhostMaterialCount = GhostMeshComponent->GetNumMaterials();
463 const int32 MaterialCount = FMath::Max(SourceMaterialCount, GhostMaterialCount);
464
465 for (int32 Index = 0; Index < MaterialCount; ++Index)
466 {
467 UMaterialInstanceDynamic* MaterialInstance = UMaterialInstanceDynamic::Create(GhostMaterial, GhostMeshComponent);
468 GhostMaterialInstances.Add(MaterialInstance);
469 GhostMeshComponent->SetMaterial(Index, MaterialInstance);
470 }
471}
TObjectPtr< USkeletalMeshComponent > SourceMeshComponent
Definition CharacterGhostEffectComponent.h:169
TArray< TObjectPtr< UMaterialInstanceDynamic > > GhostMaterialInstances
Definition CharacterGhostEffectComponent.h:175
TObjectPtr< UPoseableMeshComponent > GhostMeshComponent
Definition CharacterGhostEffectComponent.h:172
TObjectPtr< UMaterialInterface > GhostMaterial
Definition CharacterGhostEffectComponent.h:119

다음을 참조함 : GhostMaterial, GhostMaterialInstances, GhostMeshComponent, SourceMeshComponent.

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

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

◆ BeginPlay()

void UCharacterGhostEffectComponent::BeginPlay ( )
overrideprotectedvirtual
29{
30 Super::BeginPlay();
31
35}
bool ResolveSourceMeshComponent()
Definition CharacterGhostEffectComponent.cpp:368
void SetGhostMeshVisible(bool bVisible)
Definition CharacterGhostEffectComponent.cpp:474
bool EnsureGhostMeshComponent()
Definition CharacterGhostEffectComponent.cpp:387

다음을 참조함 : EnsureGhostMeshComponent(), ResolveSourceMeshComponent(), SetGhostMeshVisible().

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

◆ CaptureGhostProjectionPose()

void UCharacterGhostEffectComponent::CaptureGhostProjectionPose ( )
private
437{
438 if (SourceMeshComponent == nullptr || GhostMeshComponent == nullptr)
439 {
440 return;
441 }
442
443 GhostMeshComponent->SetSkinnedAssetAndUpdate(SourceMeshComponent->GetSkeletalMeshAsset(), false);
444 GhostMeshComponent->DetachFromComponent(FDetachmentTransformRules::KeepWorldTransform);
445 GhostMeshComponent->SetWorldTransform(SourceMeshComponent->GetComponentTransform());
446 GhostMeshComponent->RefreshBoneTransforms();
447 GhostMeshComponent->CopyPoseFromSkeletalComponent(SourceMeshComponent);
448 GhostMeshComponent->RefreshBoneTransforms();
449}

다음을 참조함 : GhostMeshComponent, SourceMeshComponent.

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

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

◆ CaptureTrailSample()

void UCharacterGhostEffectComponent::CaptureTrailSample ( const FVector &  Direction)
private

이동한 위치에서 포즈를 복사하며, 이전 포즈의 월드 위치는 유지합니다.

235{
238 Sample.Mesh->SetWorldTransform(SourceMeshComponent->GetComponentTransform());
239 Sample.Mesh->CopyPoseFromSkeletalComponent(SourceMeshComponent);
240 Sample.Mesh->RefreshBoneTransforms();
241 Sample.SpawnTime = GetWorld()->GetTimeSeconds();
242 Sample.Material->SetScalarParameterValue(Opacity, MaxOpacity);
243 Sample.Material->SetScalarParameterValue(TEXT("GhostAge"), 0.0f);
244 Sample.Material->SetVectorParameterValue(TEXT("TravelDirection"), FLinearColor(Direction.X, Direction.Y, Direction.Z));
245 Sample.Mesh->SetVisibility(true);
246 LastTrailLocation = SourceMeshComponent->GetComponentLocation();
247 LastTrailTime = Sample.SpawnTime;
248}
FVector LastTrailLocation
Definition CharacterGhostEffectComponent.h:201
TArray< FGhostTrailSample > TrailSamples
Definition CharacterGhostEffectComponent.h:178
int32 NextTrailIndex
Definition CharacterGhostEffectComponent.h:203
const FName Opacity
Definition CharacterGhostEffectComponent.h:138
double LastTrailTime
Definition CharacterGhostEffectComponent.h:202
static constexpr int32 MaxTrailSamples
Definition CharacterGhostEffectComponent.h:197
float MaxOpacity
Definition CharacterGhostEffectComponent.h:131
Definition CharacterGhostEffectComponent.h:19
TObjectPtr< UMaterialInstanceDynamic > Material
Definition CharacterGhostEffectComponent.h:26
double SpawnTime
Definition CharacterGhostEffectComponent.h:28
TObjectPtr< UPoseableMeshComponent > Mesh
Definition CharacterGhostEffectComponent.h:23

다음을 참조함 : LastTrailLocation, LastTrailTime, FGhostTrailSample::Material, MaxOpacity, MaxTrailSamples, FGhostTrailSample::Mesh, NextTrailIndex, Opacity, SourceMeshComponent, FGhostTrailSample::SpawnTime, TrailSamples.

다음에 의해서 참조됨 : StartTravelGhost(), UpdateTravelGhost().

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

◆ ClearEffectTimers()

void UCharacterGhostEffectComponent::ClearEffectTimers ( )
private
702{
705}
void ClearHoldTimer()
Definition CharacterGhostEffectComponent.cpp:675
void ClearFadeTimer()
Definition CharacterGhostEffectComponent.cpp:688

다음을 참조함 : ClearFadeTimer(), ClearHoldTimer().

다음에 의해서 참조됨 : ForceEndGhostEffect(), PlayGhostEffect(), RemoveGhostEffect().

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

◆ ClearFadeTimer()

void UCharacterGhostEffectComponent::ClearFadeTimer ( )
private
689{
690 UWorld* World = GetWorld();
691
692 if (World == nullptr)
693 {
694 return;
695 }
696
697 World->GetTimerManager().ClearTimer(FadeTimerHandle);
698}
FTimerHandle FadeTimerHandle
Definition CharacterGhostEffectComponent.h:189

다음을 참조함 : FadeTimerHandle.

다음에 의해서 참조됨 : ClearEffectTimers(), UpdateFade().

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

◆ ClearHoldTimer()

void UCharacterGhostEffectComponent::ClearHoldTimer ( )
private
676{
677 UWorld* World = GetWorld();
678
679 if (World == nullptr)
680 {
681 return;
682 }
683
684 World->GetTimerManager().ClearTimer(HoldTimerHandle);
685}
FTimerHandle HoldTimerHandle
Definition CharacterGhostEffectComponent.h:188

다음을 참조함 : HoldTimerHandle.

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

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

◆ EndPlay()

void UCharacterGhostEffectComponent::EndPlay ( const EEndPlayReason::Type  EndPlayReason)
overrideprotectedvirtual
39{
41
42 Super::EndPlay(EndPlayReason);
43}
void ForceEndGhostEffect()
Definition CharacterGhostEffectComponent.cpp:134

다음을 참조함 : ForceEndGhostEffect().

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

◆ EnsureGhostMeshComponent()

bool UCharacterGhostEffectComponent::EnsureGhostMeshComponent ( )
private
388{
390 {
391 return true;
392 }
393
394 AActor* OwnerActor = GetOwner();
395
396 if (OwnerActor == nullptr)
397 {
398 return false;
399 }
400
401 GhostMeshComponent = NewObject<UPoseableMeshComponent>(OwnerActor, TEXT("GhostProjectionMeshComponent"));
402
403 if (GhostMeshComponent == nullptr)
404 {
405 return false;
406 }
407
408 OwnerActor->AddInstanceComponent(GhostMeshComponent);
409 GhostMeshComponent->RegisterComponent();
410 GhostMeshComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
411 GhostMeshComponent->SetReceivesDecals(false);
412 GhostMeshComponent->SetCastShadow(false);
413 GhostMeshComponent->bCastDynamicShadow = false;
414 return true;
415}

다음을 참조함 : GhostMeshComponent.

다음에 의해서 참조됨 : BeginPlay(), PrepareGhostMeshComponent().

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

◆ FinishHolding()

void UCharacterGhostEffectComponent::FinishHolding ( )
private
670{
672}
void StopGhostEffect()
Definition CharacterGhostEffectComponent.cpp:102

다음을 참조함 : StopGhostEffect().

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

◆ ForceEndGhostEffect()

void UCharacterGhostEffectComponent::ForceEndGhostEffect ( )
135{
136 StopTravelGhost(true);
138 SetGhostOpacity(0.0f);
139 SetGhostMeshVisible(false);
142}
void StopTravelGhost(bool bImmediate=false)
Definition CharacterGhostEffectComponent.cpp:197
void SetCurrentState(EGhostEffectState NewState)
Definition CharacterGhostEffectComponent.cpp:562
void RestoreOriginalMeshVisibility()
Definition CharacterGhostEffectComponent.cpp:524
void ClearEffectTimers()
Definition CharacterGhostEffectComponent.cpp:701
void SetGhostOpacity(float Value)
Definition CharacterGhostEffectComponent.cpp:291

다음을 참조함 : ClearEffectTimers(), Inactive, RestoreOriginalMeshVisibility(), SetCurrentState(), SetGhostMeshVisible(), SetGhostOpacity(), StopTravelGhost().

다음에 의해서 참조됨 : EndPlay(), UAnimNotify_GhostEffect::Notify(), PlayGhostEffect(), RemoveGhostEffect(), StartFadeOut(), StartTravelGhost(), UpdateFade(), UpdateTravelGhost().

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

◆ GetGhostEffectState()

FORCEINLINE EGhostEffectState UCharacterGhostEffectComponent::GetGhostEffectState ( ) const
inline
107 {
108 return CurrentState;
109 }
EGhostEffectState CurrentState
Definition CharacterGhostEffectComponent.h:181

◆ GetGhostMeshComponent()

FORCEINLINE UPoseableMeshComponent * UCharacterGhostEffectComponent::GetGhostMeshComponent ( ) const
inline
113 {
114 return GhostMeshComponent;
115 }

◆ GetPlayerWeaponMeshComponent()

USkeletalMeshComponent * UCharacterGhostEffectComponent::GetPlayerWeaponMeshComponent ( ) const
private
550{
551 const AMainPlayerCharacter* Player = Cast<AMainPlayerCharacter>(GetOwner());
552
553 if (Player == nullptr)
554 {
555 return nullptr;
556 }
557
558 return Player->GetWeaponMeshComponent();
559}
Definition MainPlayerCharacter.h:43

다음을 참조함 : Player.

다음에 의해서 참조됨 : RestoreOriginalMeshVisibility(), SetOriginalMeshHidden().

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

◆ InitializeGhostEffect()

void UCharacterGhostEffectComponent::InitializeGhostEffect ( USkeletalMeshComponent *  InSourceMeshComponent)
47{
48 if (InSourceMeshComponent == nullptr)
49 {
50 return;
51 }
52
53 SourceMeshComponent = InSourceMeshComponent;
54
56 {
58 }
59}
bool PrepareGhostMeshComponent()
Definition CharacterGhostEffectComponent.cpp:418

다음을 참조함 : GhostMeshComponent, PrepareGhostMeshComponent(), SourceMeshComponent.

다음에 의해서 참조됨 : UAnimNotify_GhostEffect::Notify(), UGA_Skill_StrikeBase::StartStrikeTravelPresentation().

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

◆ PlayGhostEffect()

void UCharacterGhostEffectComponent::PlayGhostEffect ( )
63{
65
66 if (GhostMaterial == nullptr)
67 {
68 LOG_WARNING(LogCK, "GhostMaterial is null.");
69 return;
70 }
71
72 if (PrepareGhostMeshComponent() == false)
73 {
74 return;
75 }
76
78 {
80 }
81 else
82 {
84 }
85
89
90 if (FadeInDuration < KINDA_SMALL_NUMBER)
91 {
94 return;
95 }
96
97 SetGhostOpacity(0.0f);
99}
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:40
float FadeInDuration
Definition CharacterGhostEffectComponent.h:122
void StartHolding()
Definition CharacterGhostEffectComponent.cpp:647
void StartFadeIn()
Definition CharacterGhostEffectComponent.cpp:569
void SetOriginalMeshHidden(bool bHidden)
Definition CharacterGhostEffectComponent.cpp:487
void ApplyGhostMaterial()
Definition CharacterGhostEffectComponent.cpp:452
bool bHideOriginalMeshWhileActive
Definition CharacterGhostEffectComponent.h:134

다음을 참조함 : ApplyGhostMaterial(), bHideOriginalMeshWhileActive, ClearEffectTimers(), FadeInDuration, ForceEndGhostEffect(), GhostMaterial, LOG_WARNING, MaxOpacity, PrepareGhostMeshComponent(), RestoreOriginalMeshVisibility(), SetGhostMeshVisible(), SetGhostOpacity(), SetOriginalMeshHidden(), StartFadeIn(), StartHolding().

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

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

◆ PrepareGhostMeshComponent()

bool UCharacterGhostEffectComponent::PrepareGhostMeshComponent ( )
private
419{
420 if (ResolveSourceMeshComponent() == false || EnsureGhostMeshComponent() == false)
421 {
422 return false;
423 }
424
425 if (SourceMeshComponent == nullptr || GhostMeshComponent == nullptr)
426 {
427 return false;
428 }
429
431 GhostMeshComponent->SetComponentTickEnabled(false);
432 return true;
433}
void CaptureGhostProjectionPose()
Definition CharacterGhostEffectComponent.cpp:436

다음을 참조함 : CaptureGhostProjectionPose(), EnsureGhostMeshComponent(), GhostMeshComponent, ResolveSourceMeshComponent(), SourceMeshComponent.

다음에 의해서 참조됨 : InitializeGhostEffect(), PlayGhostEffect().

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

◆ RemoveGhostEffect()

void UCharacterGhostEffectComponent::RemoveGhostEffect ( float  InFadeOutDuration)
109{
111 {
112 if (GhostMeshComponent && GhostMeshComponent->IsVisible())
113 {
115 }
116
117 return;
118 }
119
120 SetGhostFadeOutDuration(InFadeOutDuration);
122
123 if (FadeOutDuration < KINDA_SMALL_NUMBER)
124 {
126 return;
127 }
128
131}
float CurrentOpacity
Definition CharacterGhostEffectComponent.h:183
float FadeOutDuration
Definition CharacterGhostEffectComponent.h:128
void SetGhostFadeOutDuration(float Value)
Definition CharacterGhostEffectComponent.cpp:356
float FadeOutStartOpacity
Definition CharacterGhostEffectComponent.h:184
void StartFadeOut(float InStartOpacity)
Definition CharacterGhostEffectComponent.cpp:589

다음을 참조함 : ClearEffectTimers(), CurrentOpacity, CurrentState, FadeOutDuration, FadeOutStartOpacity, ForceEndGhostEffect(), GhostMeshComponent, Inactive, SetGhostFadeOutDuration(), StartFadeOut().

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

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

◆ ResolveSourceMeshComponent()

bool UCharacterGhostEffectComponent::ResolveSourceMeshComponent ( )
private
369{
371 {
372 return true;
373 }
374
375 const ACharacter* OwnerCharacter = Cast<ACharacter>(GetOwner());
376
377 if (OwnerCharacter == nullptr)
378 {
379 return false;
380 }
381
382 SourceMeshComponent = OwnerCharacter->GetMesh();
383 return SourceMeshComponent ? true : false;
384}

다음을 참조함 : SourceMeshComponent.

다음에 의해서 참조됨 : BeginPlay(), PrepareGhostMeshComponent(), StartTravelGhost().

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

◆ RestoreOriginalMeshVisibility()

void UCharacterGhostEffectComponent::RestoreOriginalMeshVisibility ( )
private
525{
526 if (SourceMeshComponent == nullptr || bHasStoredOriginalVisibility == false)
527 {
528 return;
529 }
530
531 USkeletalMeshComponent* WeaponMeshComponent = GetPlayerWeaponMeshComponent();
532 const bool bCurrentWeaponVisibility = WeaponMeshComponent ? WeaponMeshComponent->IsVisible() : false;
533 const bool bCurrentWeaponHiddenInGame = WeaponMeshComponent ? WeaponMeshComponent->bHiddenInGame : true;
534
535 SourceMeshComponent->SetVisibility(bOriginalVisibility, true);
536 SourceMeshComponent->SetHiddenInGame(bOriginalHiddenInGame, true);
537
538 if (bHasStoredWeaponVisibility && WeaponMeshComponent && WeaponMeshComponent != SourceMeshComponent)
539 {
540 WeaponMeshComponent->SetVisibility(bCurrentWeaponVisibility, false);
541 WeaponMeshComponent->SetHiddenInGame(bCurrentWeaponHiddenInGame, false);
542 }
543
546}
bool bHasStoredOriginalVisibility
Definition CharacterGhostEffectComponent.h:194
bool bOriginalVisibility
Definition CharacterGhostEffectComponent.h:190
bool bOriginalHiddenInGame
Definition CharacterGhostEffectComponent.h:191
USkeletalMeshComponent * GetPlayerWeaponMeshComponent() const
Definition CharacterGhostEffectComponent.cpp:549
bool bHasStoredWeaponVisibility
Definition CharacterGhostEffectComponent.h:195

다음을 참조함 : bHasStoredOriginalVisibility, bHasStoredWeaponVisibility, bOriginalHiddenInGame, bOriginalVisibility, GetPlayerWeaponMeshComponent(), SourceMeshComponent.

다음에 의해서 참조됨 : ForceEndGhostEffect(), PlayGhostEffect(), StopTravelGhost().

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

◆ SetCurrentState()

void UCharacterGhostEffectComponent::SetCurrentState ( EGhostEffectState  NewState)
private
563{
564 CurrentState = NewState;
565 StateStartTime = GetWorld() ? GetWorld()->GetTimeSeconds() : 0.0;
566}
double StateStartTime
Definition CharacterGhostEffectComponent.h:182

다음을 참조함 : CurrentState, StateStartTime.

다음에 의해서 참조됨 : ForceEndGhostEffect(), StartFadeIn(), StartFadeOut(), StartHolding(), StartTravelGhost(), StopTravelGhost(), UpdateTravelGhost().

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

◆ SetGhostColor()

void UCharacterGhostEffectComponent::SetGhostColor ( FLinearColor  Color)
336{
337 for (UMaterialInstanceDynamic* MaterialInstance : GhostMaterialInstances)
338 {
339 MaterialInstance->SetVectorParameterValue(GhostColor, Color);
340 }
341}
const FName GhostColor
Definition CharacterGhostEffectComponent.h:137

다음을 참조함 : GhostColor, GhostMaterialInstances.

◆ SetGhostEmissiveIntensity()

void UCharacterGhostEffectComponent::SetGhostEmissiveIntensity ( float  Value)
303{
304 const float NewValue = FMath::Max(Value, 0.0f);
305
306 for (UMaterialInstanceDynamic* MaterialInstance : GhostMaterialInstances)
307 {
308 MaterialInstance->SetScalarParameterValue(EmissiveIntensity, NewValue);
309 }
310}
const FName EmissiveIntensity
Definition CharacterGhostEffectComponent.h:139

다음을 참조함 : EmissiveIntensity, GhostMaterialInstances.

◆ SetGhostFadeInDuration()

void UCharacterGhostEffectComponent::SetGhostFadeInDuration ( float  Value)
351{
352 FadeInDuration = FMath::Max(Value, 0.0f);
353}

다음을 참조함 : FadeInDuration.

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

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

◆ SetGhostFadeOutDuration()

void UCharacterGhostEffectComponent::SetGhostFadeOutDuration ( float  Value)
357{
358 FadeOutDuration = FMath::Max(Value, 0.0f);
359}

다음을 참조함 : FadeOutDuration.

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

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

◆ SetGhostFresnelIntensity()

void UCharacterGhostEffectComponent::SetGhostFresnelIntensity ( float  Value)
325{
326 const float NewValue = FMath::Max(Value, 0.0f);
327
328 for (UMaterialInstanceDynamic* MaterialInstance : GhostMaterialInstances)
329 {
330 MaterialInstance->SetScalarParameterValue(FresnelIntensity, NewValue);
331 }
332}
const FName FresnelIntensity
Definition CharacterGhostEffectComponent.h:141

다음을 참조함 : FresnelIntensity, GhostMaterialInstances.

◆ SetGhostFresnelPower()

void UCharacterGhostEffectComponent::SetGhostFresnelPower ( float  Value)
314{
315 const float NewValue = FMath::Max(Value, 0.01f);
316
317 for (UMaterialInstanceDynamic* MaterialInstance : GhostMaterialInstances)
318 {
319 MaterialInstance->SetScalarParameterValue(FresnelPower, NewValue);
320 }
321}
const FName FresnelPower
Definition CharacterGhostEffectComponent.h:140

다음을 참조함 : FresnelPower, GhostMaterialInstances.

◆ SetGhostHoldDuration()

void UCharacterGhostEffectComponent::SetGhostHoldDuration ( float  Value)
345{
346 HoldDuration = FMath::Max(Value, 0.0f);
347}
float HoldDuration
Definition CharacterGhostEffectComponent.h:125

다음을 참조함 : HoldDuration.

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

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

◆ SetGhostMeshVisible()

void UCharacterGhostEffectComponent::SetGhostMeshVisible ( bool  bVisible)
private
475{
476 if (GhostMeshComponent == nullptr)
477 {
478 return;
479 }
480
481 GhostMeshComponent->SetVisibility(bVisible, false);
482 GhostMeshComponent->SetHiddenInGame(bVisible == false, false);
483 GhostMeshComponent->SetComponentTickEnabled(false);
484}

다음을 참조함 : GhostMeshComponent.

다음에 의해서 참조됨 : BeginPlay(), ForceEndGhostEffect(), PlayGhostEffect().

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

◆ SetGhostOpacity()

void UCharacterGhostEffectComponent::SetGhostOpacity ( float  Value)
292{
293 CurrentOpacity = FMath::Clamp(Value, 0.0f, 1.0f);
294
295 for (UMaterialInstanceDynamic* MaterialInstance : GhostMaterialInstances)
296 {
297 MaterialInstance->SetScalarParameterValue(Opacity, CurrentOpacity);
298 }
299}

다음을 참조함 : CurrentOpacity, GhostMaterialInstances, Opacity.

다음에 의해서 참조됨 : ForceEndGhostEffect(), PlayGhostEffect(), StartFadeIn(), UpdateFade().

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

◆ SetHideOriginalMeshWhileActive()

void UCharacterGhostEffectComponent::SetHideOriginalMeshWhileActive ( bool  bShouldHide)
363{
364 bHideOriginalMeshWhileActive = bShouldHide;
365}

다음을 참조함 : bHideOriginalMeshWhileActive.

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

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

◆ SetOriginalMeshHidden()

void UCharacterGhostEffectComponent::SetOriginalMeshHidden ( bool  bHidden)
private
488{
489 if (SourceMeshComponent == nullptr)
490 {
491 return;
492 }
493
494 USkeletalMeshComponent* WeaponMeshComponent = GetPlayerWeaponMeshComponent();
495
496 bool bChangedState = false;
497
498 if (bHasStoredOriginalVisibility == false)
499 {
503 bChangedState = true;
504 }
505
506 if (bChangedState && WeaponMeshComponent && WeaponMeshComponent != SourceMeshComponent)
507 {
508 bOriginalWeaponVisibility = WeaponMeshComponent->IsVisible();
509 bOriginalWeaponHiddenInGame = WeaponMeshComponent->bHiddenInGame;
511 }
512
513 SourceMeshComponent->SetVisibility(bHidden == false, true);
514 SourceMeshComponent->SetHiddenInGame(bHidden, true);
515
516 if (bHidden && WeaponMeshComponent && WeaponMeshComponent != SourceMeshComponent)
517 {
518 WeaponMeshComponent->SetVisibility(bOriginalWeaponVisibility, false);
519 WeaponMeshComponent->SetHiddenInGame(bOriginalWeaponHiddenInGame, false);
520 }
521}
bool bOriginalWeaponHiddenInGame
Definition CharacterGhostEffectComponent.h:193
bool bOriginalWeaponVisibility
Definition CharacterGhostEffectComponent.h:192

다음을 참조함 : bHasStoredOriginalVisibility, bHasStoredWeaponVisibility, bOriginalHiddenInGame, bOriginalVisibility, bOriginalWeaponHiddenInGame, bOriginalWeaponVisibility, GetPlayerWeaponMeshComponent(), SourceMeshComponent.

다음에 의해서 참조됨 : PlayGhostEffect(), StartTravelGhost().

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

◆ StartFadeIn()

void UCharacterGhostEffectComponent::StartFadeIn ( )
private
570{
571 FadeStartOpacity = 0.0f;
575
576 UWorld* World = GetWorld();
577
578 if (World == nullptr)
579 {
581 StartHolding();
582 return;
583 }
584
585 World->GetTimerManager().SetTimer(FadeTimerHandle, this, &ThisClass::UpdateFade, CharacterGhostEffect::FadeUpdateInterval, true);
586}
float FadeDuration
Definition CharacterGhostEffectComponent.h:187
float FadeTargetOpacity
Definition CharacterGhostEffectComponent.h:186
float FadeStartOpacity
Definition CharacterGhostEffectComponent.h:185
constexpr float FadeUpdateInterval
Definition CharacterGhostEffectComponent.cpp:17

다음을 참조함 : FadeDuration, FadeInDuration, FadeStartOpacity, FadeTargetOpacity, FadeTimerHandle, CharacterGhostEffect::FadeUpdateInterval, FadingIn, MaxOpacity, SetCurrentState(), SetGhostOpacity(), StartHolding().

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

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

◆ StartFadeOut()

void UCharacterGhostEffectComponent::StartFadeOut ( float  InStartOpacity)
private
590{
591 FadeStartOpacity = InStartOpacity;
592 FadeTargetOpacity = 0.0f;
595
596 UWorld* World = GetWorld();
597
598 if (World == nullptr)
599 {
601 return;
602 }
603
604 World->GetTimerManager().SetTimer(FadeTimerHandle, this, &ThisClass::UpdateFade, CharacterGhostEffect::FadeUpdateInterval, true);
605}

다음을 참조함 : FadeDuration, FadeOutDuration, FadeStartOpacity, FadeTargetOpacity, FadeTimerHandle, CharacterGhostEffect::FadeUpdateInterval, FadingOut, ForceEndGhostEffect(), SetCurrentState().

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

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

◆ StartHolding()

void UCharacterGhostEffectComponent::StartHolding ( )
private
648{
650
651 if (HoldDuration <= 0.0f)
652 {
654 return;
655 }
656
657 UWorld* World = GetWorld();
658
659 if (World == nullptr)
660 {
662 return;
663 }
664
665 World->GetTimerManager().SetTimer(HoldTimerHandle, this, &ThisClass::FinishHolding, HoldDuration, false);
666}

다음을 참조함 : HoldDuration, Holding, HoldTimerHandle, SetCurrentState(), StopGhostEffect().

다음에 의해서 참조됨 : PlayGhostEffect(), StartFadeIn(), UpdateFade().

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

◆ StartTravelGhost()

bool UCharacterGhostEffectComponent::StartTravelGhost ( const FVector &  Direction)

이동 시작 즉시 출발 포즈를 남기고 실제 경로에서 최대 네 개의 잔상을 재사용합니다.

146{
147 if (GhostMaterial == nullptr || GetWorld() == nullptr || ResolveSourceMeshComponent() == false)
148 {
149 return false;
150 }
151
154
155 for (FGhostTrailSample& Sample : TrailSamples)
156 {
157 if (Sample.Mesh == nullptr)
158 {
159 Sample.Mesh = NewObject<UPoseableMeshComponent>(GetOwner());
160 GetOwner()->AddInstanceComponent(Sample.Mesh);
161 Sample.Mesh->RegisterComponent();
162 Sample.Mesh->SetCollisionEnabled(ECollisionEnabled::NoCollision);
163 Sample.Mesh->SetReceivesDecals(false);
164 Sample.Mesh->SetCastShadow(false);
165 Sample.Mesh->SetComponentTickEnabled(false);
166 Sample.Mesh->SetBoundsScale(1.5f);
167 }
168
169 Sample.Mesh->SetSkinnedAssetAndUpdate(SourceMeshComponent->GetSkeletalMeshAsset(), false);
170 Sample.Material = UMaterialInstanceDynamic::Create(GhostMaterial, Sample.Mesh);
171
172 for (int32 Index = 0; Index < Sample.Mesh->GetNumMaterials(); ++Index)
173 {
174 Sample.Mesh->SetMaterial(Index, Sample.Material);
175 }
176
177 Sample.Mesh->SetVisibility(false);
178 Sample.SpawnTime = -TrailLifetime;
179 }
180
181 OriginalAnimTickOption = SourceMeshComponent->VisibilityBasedAnimTickOption;
182 SourceMeshComponent->VisibilityBasedAnimTickOption = EVisibilityBasedAnimTickOption::AlwaysTickPoseAndRefreshBones;
183 bTravelActive = true;
184 NextTrailIndex = 0;
187 CaptureTrailSample(Direction.GetSafeNormal());
188 FTimerManagerTimerParameters TimerParameters;
189 TimerParameters.bLoop = true;
190 TimerParameters.bMaxOncePerFrame = true;
191 GetWorld()->GetTimerManager().SetTimer(TrailTimerHandle, this, &ThisClass::UpdateTravelGhost,
193 return true;
194}
EVisibilityBasedAnimTickOption OriginalAnimTickOption
Definition CharacterGhostEffectComponent.h:205
FTimerHandle TrailTimerHandle
Definition CharacterGhostEffectComponent.h:200
void CaptureTrailSample(const FVector &Direction)
Definition CharacterGhostEffectComponent.cpp:234
static constexpr float TrailLifetime
Definition CharacterGhostEffectComponent.h:198
bool bTravelActive
Definition CharacterGhostEffectComponent.h:204

다음을 참조함 : bTravelActive, CaptureTrailSample(), CharacterGhostEffect::FadeUpdateInterval, ForceEndGhostEffect(), GhostMaterial, Holding, MaxTrailSamples, NextTrailIndex, OriginalAnimTickOption, ResolveSourceMeshComponent(), SetCurrentState(), SetOriginalMeshHidden(), SourceMeshComponent, TrailLifetime, TrailSamples, TrailTimerHandle.

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

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

◆ StopGhostEffect()

void UCharacterGhostEffectComponent::StopGhostEffect ( )
103{
105}
void RemoveGhostEffect(float InFadeOutDuration)
Definition CharacterGhostEffectComponent.cpp:108

다음을 참조함 : FadeOutDuration, RemoveGhostEffect().

다음에 의해서 참조됨 : FinishHolding(), StartHolding().

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

◆ StopTravelGhost()

void UCharacterGhostEffectComponent::StopTravelGhost ( bool  bImmediate = false)

도착 시 원본을 복원하고 잔상을 감쇠합니다. 취소 시에는 즉시 제거합니다.

198{
199 if (bTravelActive)
200 {
201 bTravelActive = false;
202
204 {
205 SourceMeshComponent->VisibilityBasedAnimTickOption = OriginalAnimTickOption;
206 }
207
210 }
211
212 if (bImmediate == false)
213 {
214 return;
215 }
216
217 if (UWorld* World = GetWorld())
218 {
219 World->GetTimerManager().ClearTimer(TrailTimerHandle);
220 }
221
222 for (FGhostTrailSample& Sample : TrailSamples)
223 {
224 if (Sample.Mesh)
225 {
226 Sample.Mesh->SetVisibility(false);
227 }
228 }
229
231}

다음을 참조함 : bTravelActive, FadingOut, Inactive, OriginalAnimTickOption, RestoreOriginalMeshVisibility(), SetCurrentState(), SourceMeshComponent, TrailSamples, TrailTimerHandle.

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

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

◆ UpdateFade()

void UCharacterGhostEffectComponent::UpdateFade ( )
private
609{
610 UWorld* World = GetWorld();
611
612 if (World == nullptr)
613 {
615 return;
616 }
617
618 const float StateElapsedTime = static_cast<float>(World->GetTimeSeconds() - StateStartTime);
619
620 float RawAlpha = 1.0f;
621
622 if (FadeDuration > 0.0f)
623 {
624 RawAlpha = FMath::Clamp(StateElapsedTime / FadeDuration, 0.0f, 1.0f);
625 }
626
627 SetGhostOpacity(FMath::Lerp(FadeStartOpacity, FadeTargetOpacity, RawAlpha));
628
629 if (RawAlpha + KINDA_SMALL_NUMBER < 1.0f)
630 {
631 return;
632 }
633
635
637 {
639 StartHolding();
640 return;
641 }
642
644}

다음을 참조함 : ClearFadeTimer(), CurrentState, FadeDuration, FadeStartOpacity, FadeTargetOpacity, FadingIn, ForceEndGhostEffect(), MaxOpacity, SetGhostOpacity(), StartHolding(), StateStartTime.

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

◆ UpdateTravelGhost()

void UCharacterGhostEffectComponent::UpdateTravelGhost ( )
private

월드 시각을 기준으로 잔상 수명과 다음 생성 시점을 갱신합니다.

252{
253 UWorld* World = GetWorld();
254
255 if (World == nullptr || IsValid(SourceMeshComponent) == false)
256 {
258 return;
259 }
260
261 const double Now = World->GetTimeSeconds();
262 bool bAnyVisible = false;
263
264 for (FGhostTrailSample& Sample : TrailSamples)
265 {
266 const float Age = FMath::Clamp(static_cast<float>((Now - Sample.SpawnTime) / TrailLifetime), 0.0f, 1.0f);
267 Sample.Material->SetScalarParameterValue(Opacity, MaxOpacity * (1.0f - Age));
268 Sample.Material->SetScalarParameterValue(TEXT("GhostAge"), Age);
269 Sample.Mesh->SetVisibility(Age < 1.0f);
270 bAnyVisible |= Age < 1.0f;
271 }
272
273 if (bTravelActive)
274 {
275 const FVector Displacement = SourceMeshComponent->GetComponentLocation() - LastTrailLocation;
276
277 // 밀린 타이머 호출로 같은 프레임에 중복 포즈를 남기지 않습니다.
278 if (Now - LastTrailTime >= TrailInterval && Displacement.SizeSquared() > 1.0f)
279 {
280 CaptureTrailSample(Displacement.GetSafeNormal());
281 }
282 }
283 else if (bAnyVisible == false)
284 {
285 World->GetTimerManager().ClearTimer(TrailTimerHandle);
287 }
288}
static constexpr float TrailInterval
Definition CharacterGhostEffectComponent.h:199

다음을 참조함 : bTravelActive, CaptureTrailSample(), ForceEndGhostEffect(), Inactive, LastTrailLocation, LastTrailTime, MaxOpacity, Opacity, SetCurrentState(), SourceMeshComponent, TrailInterval, TrailLifetime, TrailSamples, TrailTimerHandle.

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

멤버 데이터 문서화

◆ bHasStoredOriginalVisibility

bool UCharacterGhostEffectComponent::bHasStoredOriginalVisibility = false
private

다음에 의해서 참조됨 : RestoreOriginalMeshVisibility(), SetOriginalMeshHidden().

◆ bHasStoredWeaponVisibility

bool UCharacterGhostEffectComponent::bHasStoredWeaponVisibility = false
private

다음에 의해서 참조됨 : RestoreOriginalMeshVisibility(), SetOriginalMeshHidden().

◆ bHideOriginalMeshWhileActive

bool UCharacterGhostEffectComponent::bHideOriginalMeshWhileActive = false
protected

다음에 의해서 참조됨 : PlayGhostEffect(), SetHideOriginalMeshWhileActive().

◆ bOriginalHiddenInGame

bool UCharacterGhostEffectComponent::bOriginalHiddenInGame = false
private

다음에 의해서 참조됨 : RestoreOriginalMeshVisibility(), SetOriginalMeshHidden().

◆ bOriginalVisibility

bool UCharacterGhostEffectComponent::bOriginalVisibility = true
private

다음에 의해서 참조됨 : RestoreOriginalMeshVisibility(), SetOriginalMeshHidden().

◆ bOriginalWeaponHiddenInGame

bool UCharacterGhostEffectComponent::bOriginalWeaponHiddenInGame = false
private

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

◆ bOriginalWeaponVisibility

bool UCharacterGhostEffectComponent::bOriginalWeaponVisibility = true
private

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

◆ bTravelActive

bool UCharacterGhostEffectComponent::bTravelActive = false
private

다음에 의해서 참조됨 : StartTravelGhost(), StopTravelGhost(), UpdateTravelGhost().

◆ CurrentOpacity

float UCharacterGhostEffectComponent::CurrentOpacity = 0.0f
private

다음에 의해서 참조됨 : RemoveGhostEffect(), SetGhostOpacity().

◆ CurrentState

EGhostEffectState UCharacterGhostEffectComponent::CurrentState = EGhostEffectState::Inactive
private

다음에 의해서 참조됨 : RemoveGhostEffect(), SetCurrentState(), UpdateFade().

◆ EmissiveIntensity

const FName UCharacterGhostEffectComponent::EmissiveIntensity = TEXT("EmissiveIntensity")
private

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

◆ FadeDuration

float UCharacterGhostEffectComponent::FadeDuration = 0.0f
private

다음에 의해서 참조됨 : StartFadeIn(), StartFadeOut(), UpdateFade().

◆ FadeInDuration

float UCharacterGhostEffectComponent::FadeInDuration = 0.35f
protected

다음에 의해서 참조됨 : PlayGhostEffect(), SetGhostFadeInDuration(), StartFadeIn().

◆ FadeOutDuration

float UCharacterGhostEffectComponent::FadeOutDuration = 0.35f
protected

◆ FadeOutStartOpacity

float UCharacterGhostEffectComponent::FadeOutStartOpacity = 0.0f
private

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

◆ FadeStartOpacity

float UCharacterGhostEffectComponent::FadeStartOpacity = 0.0f
private

다음에 의해서 참조됨 : StartFadeIn(), StartFadeOut(), UpdateFade().

◆ FadeTargetOpacity

float UCharacterGhostEffectComponent::FadeTargetOpacity = 0.0f
private

다음에 의해서 참조됨 : StartFadeIn(), StartFadeOut(), UpdateFade().

◆ FadeTimerHandle

FTimerHandle UCharacterGhostEffectComponent::FadeTimerHandle
private

다음에 의해서 참조됨 : ClearFadeTimer(), StartFadeIn(), StartFadeOut().

◆ FresnelIntensity

const FName UCharacterGhostEffectComponent::FresnelIntensity = TEXT("FresnelIntensity")
private

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

◆ FresnelPower

const FName UCharacterGhostEffectComponent::FresnelPower = TEXT("FresnelPower")
private

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

◆ GhostColor

const FName UCharacterGhostEffectComponent::GhostColor = TEXT("GhostColor")
private

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

◆ GhostMaterial

TObjectPtr<UMaterialInterface> UCharacterGhostEffectComponent::GhostMaterial = nullptr
protected

다음에 의해서 참조됨 : ApplyGhostMaterial(), PlayGhostEffect(), StartTravelGhost().

◆ GhostMaterialInstances

TArray<TObjectPtr<UMaterialInstanceDynamic> > UCharacterGhostEffectComponent::GhostMaterialInstances
private

◆ GhostMeshComponent

TObjectPtr<UPoseableMeshComponent> UCharacterGhostEffectComponent::GhostMeshComponent = nullptr
private

◆ HoldDuration

float UCharacterGhostEffectComponent::HoldDuration = 0.25f
protected

다음에 의해서 참조됨 : SetGhostHoldDuration(), StartHolding().

◆ HoldTimerHandle

FTimerHandle UCharacterGhostEffectComponent::HoldTimerHandle
private

다음에 의해서 참조됨 : ClearHoldTimer(), StartHolding().

◆ LastTrailLocation

FVector UCharacterGhostEffectComponent::LastTrailLocation = FVector::ZeroVector
private

다음에 의해서 참조됨 : CaptureTrailSample(), UpdateTravelGhost().

◆ LastTrailTime

double UCharacterGhostEffectComponent::LastTrailTime = 0.0
private

다음에 의해서 참조됨 : CaptureTrailSample(), UpdateTravelGhost().

◆ MaxOpacity

float UCharacterGhostEffectComponent::MaxOpacity = 0.5f
protected

◆ MaxTrailSamples

constexpr int32 UCharacterGhostEffectComponent::MaxTrailSamples = 4
staticconstexprprivate

다음에 의해서 참조됨 : CaptureTrailSample(), StartTravelGhost().

◆ NextTrailIndex

int32 UCharacterGhostEffectComponent::NextTrailIndex = 0
private

다음에 의해서 참조됨 : CaptureTrailSample(), StartTravelGhost().

◆ Opacity

const FName UCharacterGhostEffectComponent::Opacity = TEXT("Opacity")
private

다음에 의해서 참조됨 : CaptureTrailSample(), SetGhostOpacity(), UpdateTravelGhost().

◆ OriginalAnimTickOption

EVisibilityBasedAnimTickOption UCharacterGhostEffectComponent::OriginalAnimTickOption {}
private
205{};

다음에 의해서 참조됨 : StartTravelGhost(), StopTravelGhost().

◆ SourceMeshComponent

◆ StateStartTime

double UCharacterGhostEffectComponent::StateStartTime = 0.0
private

다음에 의해서 참조됨 : SetCurrentState(), UpdateFade().

◆ TrailInterval

constexpr float UCharacterGhostEffectComponent::TrailInterval = 0.03f
staticconstexprprivate

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

◆ TrailLifetime

constexpr float UCharacterGhostEffectComponent::TrailLifetime = 0.12f
staticconstexprprivate

다음에 의해서 참조됨 : StartTravelGhost(), UpdateTravelGhost().

◆ TrailSamples

TArray<FGhostTrailSample> UCharacterGhostEffectComponent::TrailSamples
private

◆ TrailTimerHandle

FTimerHandle UCharacterGhostEffectComponent::TrailTimerHandle
private

다음에 의해서 참조됨 : StartTravelGhost(), StopTravelGhost(), UpdateTravelGhost().


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