// Fill out your copyright notice in the Description page of Project Settings. #include "Widget/UWBP_HpBar.h" #include "Components/ProgressBar.h" #include "Widget/UWBP_RoundProgressBar.h" void UWBP_HpBar::SetHp(float hp, float hpMax) { if (!HPBar) return; HPBar->SetPercent(hp/hpMax); }