A system that is used to easily manage different character stats
- Download the latest release from GitHub
- Navigate to
C:\Program Files\Epic Games\UE_{VERSION}\Engine\Plugins\
- Create a
Marketplace
folder if needed - Extract the release and copy to the
Marketplace
folder - Open Unreal Engine
- Click on
Edit > Plugins
- Enable the plugin under the
Installed > Unreal Toolbox
category - Restart Unreal Engine
A Stat Component
can be added to each actor that requires the use of stats. The following properties can be changed inside the editor:
Max Value
- The maximum value of the statRegenerate
- The amount of value regenerated in a second
You can interact with a Stat Component
by using the following functions:
Get Value
- Return the current value of the statUpdate Value
- Set the value of the stat (clamped between 0 and the max value)Get Max Value
- Return the maximum value of the statSet Max Value
- Set the maximum value of the statGet Regenerate Amount
- Return the amount of value regenerated in a secondSet Regenerate Amount
- Set the amount of value regenerated in a second
There is 2 different events in a Stat Component
:
On Value Updated
- Called every time the value of the stat is updatedOn Value Zero
- Called when the value of the stat reaches zero