Skip to main content

Player Controller

Before we can move on, we need to create a custom PlayerController.

note

If you already have a custom PlayerController, you can skip this page.

Simply right-click in your Content Drawer, select Blueprint Class and choose Player Controller. We will name this BP_PlayerController.

player-controller-pick-parent-class.webp

Now open the BP_ThirdPersonGameMode and set the Player Controller class to your newly created BP_PlayerController.

setting-player-controller.webp

Usage

To add the inventory you need to first have completed the Common UI HUD setup.

Now, you just need to call OpenMenu from a key press, passing the WBP_Inventory option.

warning

Do not call CreateWidget on this widget. It will bypass the CommonUI framework causing functionality not to work.