KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UTweenAnimInstance.cpp
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
8#include "Kismet/KismetMathLibrary.h"
9
12{
13 const float AlphaStep = DeltaSeconds / TweenDuration;
14 const float Dir = bActivate ? 1.f : -1.f;
15
16 TweenAlpha = FMath::Clamp(TweenAlpha + AlphaStep * Dir, 0.f, 1.f);
17}
18
21{
22 if (EaseCurve)
23 return EaseCurve->GetFloatValue(TweenAlpha);
24 return TweenAlpha;
25}
UTweenAnimInstance 클래스를 선언합니다.
virtual void NativeUpdateAnimation(float DeltaSeconds) override
애니메이션 갱신 시 트윈 알파를 갱신한다.
float TweenAlpha
선형 알파 값.
bool bActivate
트윈 진행 여부.
TObjectPtr< UCurveFloat > EaseCurve
Ease 처리를 위한 커브.
float GetEasedAlpha() const
Ease 커브를 통과한 알파 값을 반환한다.
float TweenDuration
0~1 알파를 1회 왕복하는 데 걸리는 시간(초).