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
69{
70 const FString BaseName = Super::GetNotifyName_Implementation();
71 return FString::Printf(TEXT("%s x%.2f"), *BaseName, EffectTimeDilation);
72}
float EffectTimeDilation
Definition AnimNotify_PlayNiagaraCustom.h:23

◆ 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 );
39 }
40 else
41 {
42 const FTransform MeshTransform = MeshComp->GetSocketTransform(SocketName);
43
44 NiagaraComponent = UNiagaraFunctionLibrary::SpawnSystemAtLocation(
45 MeshComp->GetWorld(),
46 Template,
47 MeshTransform.TransformPosition(LocationOffset),
48 (MeshTransform.GetRotation() * RotationOffsetQuat).Rotator(),
49 FVector(1.0f),
50 true,
51 false
52 );
53 }
54
55 if (IsValid(NiagaraComponent) == false)
56 {
57 return nullptr;
58 }
59
60 NiagaraComponent->SetUsingAbsoluteScale(bAbsoluteScale);
61 NiagaraComponent->SetRelativeScale3D_Direct(Scale);
62 NiagaraComponent->SetCustomTimeDilation(EffectTimeDilation);
63 NiagaraComponent->Activate(true);
64
65 return NiagaraComponent;
66}

멤버 데이터 문서화

◆ EffectTimeDilation

float UAnimNotify_PlayNiagaraCustom::EffectTimeDilation = 1.0f
protected

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