A system that is used to easily manage different types of currency. It has built-in support for coins and gems. But can easily be used to manage multiple custom currencies
- 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
Each map need to contain an instance of the Currency Manager
. This can be done by creating a child instance of Currency Manager
and placeing it anywhere in the current map. The Currency Manager
contains 2 Currency Manager Component
instances. This is used to manage the coins and gems. Custom managers can be added and retrieved by using the following functions:
Add Manager
- Requires a custom ID (string). This will register a newCurrency Manager Component
Get Manager
- Requires a custom ID (string). This will return the registered component ornullptr
if a component with the specified ID is not registered
The Currency Manager Component
is used to manage a specific currency. This can be achieved by using the following functions:
Add
- Increase the amount of currency managed by the componentRemove
- Decrease the amount of currency managed by the componentGet Amount
- Return the amount of currency managed by the componentHave Enough
- Returns a boolean value indicating if the amount of currency is equal to or greater than the specified amount