#include <PlayerAnimInstance.h>
◆ UPlayerAnimInstance()
| UPlayerAnimInstance::UPlayerAnimInstance |
( |
| ) |
|
14{
16 LocomotionBlendRatioCurveData->AddKey(0.0f, 0.0f);
17 LocomotionBlendRatioCurveData->AddKey(1.0f, 1.0f);
18
20 AnimSpeedRatioCurveData->AddKey(0.0f, 1.0f);
21 AnimSpeedRatioCurveData->AddKey(1.0f, 1.0f);
22}
FRuntimeFloatCurve AnimSpeedRatioCurvePerLocomotionSpeedRatio
Definition PlayerAnimInstance.h:42
FRuntimeFloatCurve LocomotionBlendRatioCurve
Definition PlayerAnimInstance.h:49
다음을 참조함 : AnimSpeedRatioCurvePerLocomotionSpeedRatio, LocomotionBlendRatioCurve.
◆ CachePlayerMovement()
| void UPlayerAnimInstance::CachePlayerMovement |
( |
| ) |
|
|
protected |
◆ CalculateAnimPlayRate()
| float UPlayerAnimInstance::CalculateAnimPlayRate |
( |
float |
CurrentMovementSpeed, |
|
|
float |
RunSpeed |
|
) |
| const |
|
protected |
◆ CalculateLocomotionBlendValue()
| float UPlayerAnimInstance::CalculateLocomotionBlendValue |
( |
float |
CurrentMovementSpeed, |
|
|
float |
RunSpeed |
|
) |
| const |
|
protected |
◆ EvaluateAnimSpeedRatioCurve()
| float UPlayerAnimInstance::EvaluateAnimSpeedRatioCurve |
( |
float |
NormalizedSpeedRatio | ) |
const |
|
protected |
147{
148 const float SafeNormalizedSpeedRatio = FMath::Clamp(NormalizedSpeedRatio, 0.0f, 1.0f);
149
151 {
152 return FMath::Max(AnimSpeedRatioRichCurve->Eval(SafeNormalizedSpeedRatio, 1.0f), 0.0f);
153 }
154 else
155 {
156 return 1.0f;
157 }
158}
다음을 참조함 : AnimSpeedRatioCurvePerLocomotionSpeedRatio.
다음에 의해서 참조됨 : CalculateAnimPlayRate().
◆ EvaluateLocomotionBlendRatioCurve()
| float UPlayerAnimInstance::EvaluateLocomotionBlendRatioCurve |
( |
float |
NormalizedSpeedRatio | ) |
const |
|
protected |
126{
127 const float SafeNormalizedSpeedRatio = FMath::Clamp(NormalizedSpeedRatio, 0.0f, 1.0f);
128
130 {
131 return FMath::Max(LocomotionBlendRichCurve->Eval(SafeNormalizedSpeedRatio, SafeNormalizedSpeedRatio), 0.0f);
132 }
133 else
134 {
135 return SafeNormalizedSpeedRatio;
136 }
137}
다음을 참조함 : LocomotionBlendRatioCurve.
다음에 의해서 참조됨 : CalculateLocomotionBlendValue().
◆ NativeBeginPlay()
| void UPlayerAnimInstance::NativeBeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ NativeInitializeAnimation()
| void UPlayerAnimInstance::NativeInitializeAnimation |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ NativeUpdateAnimation()
| void UPlayerAnimInstance::NativeUpdateAnimation |
( |
float |
DeltaSeconds | ) |
|
|
overrideprotectedvirtual |
◆ OnAttackIdleTagChanged()
| void UPlayerAnimInstance::OnAttackIdleTagChanged |
( |
const FGameplayTag |
Tag, |
|
|
int32 |
NewCount |
|
) |
| |
|
protected |
◆ TryBindTagEvent()
| void UPlayerAnimInstance::TryBindTagEvent |
( |
| ) |
|
|
overrideprotectedvirtual |
UCharacterAnimInstance(으)로부터 재구현되었습니다.
90{
91 Super::TryBindTagEvent();
92
94 {
95 return;
96 }
97
98 FOnGameplayEffectTagCountChanged& Event =
CachedASC->RegisterGameplayTagEvent(TAG_CHARACTER_STATE_COMBAT_ATTACKIDLE, EGameplayTagEventType::NewOrRemoved);
101}
TObjectPtr< UAbilitySystemComponent > CachedASC
Definition CharacterAnimInstance.h:70
FDelegateHandle AttackIdleTagEventHandle
Definition PlayerAnimInstance.h:58
void OnAttackIdleTagChanged(const FGameplayTag Tag, int32 NewCount)
Definition PlayerAnimInstance.cpp:54
다음을 참조함 : AttackIdleTagEventHandle, bIsAttackIdle, UCharacterAnimInstance::CachedASC, OnAttackIdleTagChanged().
◆ TryRemoveTagEvent()
| void UPlayerAnimInstance::TryRemoveTagEvent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ UpdateAnimation()
| bool UPlayerAnimInstance::UpdateAnimation |
( |
float |
DeltaSeconds, |
|
|
float |
CurrentSpdOverride, |
|
|
float |
TargetSpdOverride |
|
) |
| |
|
overrideprotectedvirtual |
UCharacterAnimInstance(으)로부터 재구현되었습니다.
75{
77 {
78 return Super::UpdateAnimation(DeltaSeconds, CurrentSpdOverride, TargetSpdOverride);
79 }
80
85 return Super::UpdateAnimation(DeltaSeconds, CurrentMovementSpeed, TargetLocomotionBlendValue);
86}
float LocoAnimPlayRate
Definition PlayerAnimInstance.h:45
float CalculateLocomotionBlendValue(float CurrentMovementSpeed, float RunSpeed) const
Definition PlayerAnimInstance.cpp:119
float CalculateAnimPlayRate(float CurrentMovementSpeed, float RunSpeed) const
Definition PlayerAnimInstance.cpp:140
다음을 참조함 : CachedPlayerMovement, CalculateAnimPlayRate(), CalculateLocomotionBlendValue(), LocoAnimPlayRate.
◆ AnimSpeedRatioCurvePerLocomotionSpeedRatio
| FRuntimeFloatCurve UPlayerAnimInstance::AnimSpeedRatioCurvePerLocomotionSpeedRatio |
|
protected |
◆ AttackIdleTagEventHandle
| FDelegateHandle UPlayerAnimInstance::AttackIdleTagEventHandle |
|
protected |
◆ bIsAttackIdle
| bool UPlayerAnimInstance::bIsAttackIdle = false |
|
protected |
◆ CachedPlayerMovement
◆ LeanAngle
| float UPlayerAnimInstance::LeanAngle = 0.0f |
|
protected |
◆ LocoAnimPlayRate
| float UPlayerAnimInstance::LocoAnimPlayRate = 1.0f |
|
protected |
◆ LocomotionBlendRatioCurve
| FRuntimeFloatCurve UPlayerAnimInstance::LocomotionBlendRatioCurve |
|
protected |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: