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

#include <AnimNotify_PlayNiagaraCustom.h>

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

Protected 멤버 함수

virtual UFXSystemComponent * SpawnEffect (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation) override
 
virtual FString GetNotifyName_Implementation () const override
 

Protected 속성

float EffectTimeDilation = 1.0f
 

멤버 함수 문서화

◆ GetNotifyName_Implementation()

FString UAnimNotify_PlayNiagaraCustom::GetNotifyName_Implementation ( ) const
overrideprotectedvirtual
71{
72 const FString BaseName = Super::GetNotifyName_Implementation();
73 return FString::Printf(TEXT("%s x%.2f"), *BaseName, EffectTimeDilation);
74}
float EffectTimeDilation
Definition AnimNotify_PlayNiagaraCustom.h:23

다음을 참조함 : EffectTimeDilation.

◆ SpawnEffect()

UFXSystemComponent * UAnimNotify_PlayNiagaraCustom::SpawnEffect ( USkeletalMeshComponent *  MeshComp,
UAnimSequenceBase *  Animation 
)
overrideprotectedvirtual
13{
14 UNiagaraComponent* NiagaraComponent = nullptr;
15
16 if (IsValid(Template) == false || IsValid(MeshComp) == false)
17 {
18 return nullptr;
19 }
20
21 if (Template->IsLooping())
22 {
23 return nullptr;
24 }
25
26
27 if (Attached)
28 {
29 NiagaraComponent = UNiagaraFunctionLibrary::SpawnSystemAttached(
30 Template,
31 MeshComp,
32 SocketName,
33 LocationOffset,
34 RotationOffset,
35 EAttachLocation::KeepRelativeOffset,
36 true,
37 false,
38 ENCPoolMethod::AutoRelease
39 );
40 }
41 else
42 {
43 const FTransform MeshTransform = MeshComp->GetSocketTransform(SocketName);
44
45 NiagaraComponent = UNiagaraFunctionLibrary::SpawnSystemAtLocation(
46 MeshComp->GetWorld(),
47 Template,
48 MeshTransform.TransformPosition(LocationOffset),
49 (MeshTransform.GetRotation() * RotationOffsetQuat).Rotator(),
50 FVector(1.0f),
51 true,
52 false,
53 ENCPoolMethod::AutoRelease
54 );
55 }
56
57 if (IsValid(NiagaraComponent) == false)
58 {
59 return nullptr;
60 }
61
62 NiagaraComponent->SetUsingAbsoluteScale(bAbsoluteScale);
63 NiagaraComponent->SetRelativeScale3D_Direct(Scale);
64 NiagaraComponent->SetCustomTimeDilation(EffectTimeDilation);
65 NiagaraComponent->Activate(true);
66
67 return NiagaraComponent;
68}

다음을 참조함 : EffectTimeDilation.

멤버 데이터 문서화

◆ EffectTimeDilation

float UAnimNotify_PlayNiagaraCustom::EffectTimeDilation = 1.0f
protected

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


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