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

#include <AnimNotifyState_FOVControl.h>

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

Public 멤버 함수

 UAnimNotifyState_FOVControl ()
 

Public 속성

float TargetFOV = 110.0f
 
float DefaultFOV = 90.0f
 
float ChangeSpeed = 2.0f
 

Protected 멤버 함수

virtual void NotifyBegin (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, float TotalDuration, const FAnimNotifyEventReference &EventReference) override
 
virtual void NotifyEnd (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, const FAnimNotifyEventReference &EventReference) override
 

생성자 & 소멸자 문서화

◆ UAnimNotifyState_FOVControl()

UAnimNotifyState_FOVControl::UAnimNotifyState_FOVControl ( )
13{
14#if WITH_EDITORONLY_DATA
15 NotifyColor = FColor::Purple;
16#endif
17}

멤버 함수 문서화

◆ NotifyBegin()

void UAnimNotifyState_FOVControl::NotifyBegin ( USkeletalMeshComponent *  MeshComp,
UAnimSequenceBase *  Animation,
float  TotalDuration,
const FAnimNotifyEventReference &  EventReference 
)
overrideprotectedvirtual
21{
22 Super::NotifyBegin(MeshComp, Animation, TotalDuration, EventReference);
23
24 if (!MeshComp || !MeshComp->GetWorld() || !MeshComp->GetWorld()->IsGameWorld() )
25 {
26 return;
27 }
28
29 if (ACK_PlayerController* PC = Cast<ACK_PlayerController>(UGameplayStatics::GetPlayerController(MeshComp->GetWorld(), 0)))
30 {
31 PC->SetTargetFOV(TargetFOV, ChangeSpeed);
32 }
33}
Definition CK_PlayerController.h:16
float TargetFOV
Definition AnimNotifyState_FOVControl.h:27
float ChangeSpeed
Definition AnimNotifyState_FOVControl.h:33

◆ NotifyEnd()

void UAnimNotifyState_FOVControl::NotifyEnd ( USkeletalMeshComponent *  MeshComp,
UAnimSequenceBase *  Animation,
const FAnimNotifyEventReference &  EventReference 
)
overrideprotectedvirtual
38{
39 Super::NotifyEnd(MeshComp, Animation, EventReference);
40
41 if (!MeshComp || !MeshComp->GetWorld() || !MeshComp->GetWorld()->IsGameWorld())
42 {
43 return;
44 }
45
46 if (ACK_PlayerController* PC = Cast<ACK_PlayerController>(UGameplayStatics::GetPlayerController(MeshComp->GetWorld(), 0)))
47 {
48 PC->SetTargetFOV(DefaultFOV, ChangeSpeed * 1.5f);
49 }
50}
float DefaultFOV
Definition AnimNotifyState_FOVControl.h:30

멤버 데이터 문서화

◆ ChangeSpeed

float UAnimNotifyState_FOVControl::ChangeSpeed = 2.0f

◆ DefaultFOV

float UAnimNotifyState_FOVControl::DefaultFOV = 90.0f

◆ TargetFOV

float UAnimNotifyState_FOVControl::TargetFOV = 110.0f

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