Creating the weapon button

Next, we can move on to populating the equipment screen. To do this, we first need to create a weapon button similar to the item button that we created previously. This weapon button will house all the logic that will be performed when the user presses the weapon button. Since the weapon button will be similar to the item button in a lot of ways, we can duplicate the item button and modify it to fit the weapon parameters. So, go to the Item Widget Blueprint by navigating to Content Browser | Blueprints | UI, and duplicate the Item Widget Blueprint:

Creating the weapon button

Then, rename it Weapon, as shown in the following screenshot:

We can now ...

Get Building an RPG with Unreal 4.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.