#include <AnimNotifyState_FOVControl.h>
|
| 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 {
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 {
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 |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: