Skip to main content

Setup

To begin, start by adding the Currency Manager component (BPC_CurrencyManager) to your Actor/Character/etc.

In this example, we’ll be adding it to our Character Blueprint.

Setup_1

Next, ensure that the Currencies Path is set accordingly on the “Setup” category of BPC_CurrencyManager:

Setup2

important

If you move CurrencyPal from your /Content/ folder to somewhere else, you will need to update this path so that the system can find the currency data assets.

Next, go into your HUD (main user interface), and add the CurrencyMaster widget (W_MasterCurrency).

Set it up to your liking from the “~ SETUP ~” category.

Setup_3

Finally, you must ensure that the currencies you’ve added through this Widget are actually initialised in BPC_CurrencyManager.

To do this, head into the blueprint where you initialise your HUD (main user interface).

In this example, it is in the Character blueprint:

Setup_4

Add this piece of code to “initialise” the ActiveCurrencies[]:

Setup_5

You’re all set! Now you will be able to use all the functionality the CurrencyManager component has to offer!

Setup_6