filmov
tv
UE5 Adding Progress Bar Interface to the Blueprint Coin Tutorial 5
Показать описание
This tutorial shows how to build a progress bar into your user interface. Once this is on the screen, we will go through the steps to connect this progress bar to the total number of coins to collect and the number of coins collected so far via variables.
This progress bar can also be repurposed for character health, stamina, food, or any other stat that might be of use. I'll cover how to set up these other types of bars in other videos.
Adding a written list of the commands used in this tutorial:
Progress Bar
Create Horizontal Box First
Drop Progress Bar inside
Set Bar to Fill
Give Horizontal Box a name CoinsCount
Detail- Progress- Create Bind
Cast to BP_ThirdPersonCharacter
Get PlayerCharacter (NOT CONTROLLER)
Attach this to Object
Change Bind/Function name to GetCoins
Cast as Character get Coins variable
Pull off coins and divide this number by the number of coins in the level
But do this as a FLOAT not as a Int which can only be whole numbers
Add this to output/Return
This progress bar can also be repurposed for character health, stamina, food, or any other stat that might be of use. I'll cover how to set up these other types of bars in other videos.
Adding a written list of the commands used in this tutorial:
Progress Bar
Create Horizontal Box First
Drop Progress Bar inside
Set Bar to Fill
Give Horizontal Box a name CoinsCount
Detail- Progress- Create Bind
Cast to BP_ThirdPersonCharacter
Get PlayerCharacter (NOT CONTROLLER)
Attach this to Object
Change Bind/Function name to GetCoins
Cast as Character get Coins variable
Pull off coins and divide this number by the number of coins in the level
But do this as a FLOAT not as a Int which can only be whole numbers
Add this to output/Return