Unreal - Posture Progress / Hit Direction
·
Unreal 프로젝트 다이어리/두번째 프로젝트
위젯을 만들어줍니다위젯을 만들어주었습니다 델리게이트를 사용하여 첫번째 빨간색 프로그래스바가 hp에 따라 변동하며시간이 지나면 흰색 프로그래스바가 빨간 프로그래스바를 따라오도록 설계했습니다void UEnemyStatusWidget::UpdateMainHPBar(float currentHp, float maxHp){ if (ProgressBar_InnerBar) { float barPercent = currentHp / maxHp; barPercent = FMath::Clamp(barPercent, 0.f, 1.f); ProgressBar_InnerBar->SetPercent(barPercent); targetHpPercent = barPercent; if (GetWorld()->GetTimerMa..