Go to the Field Player by navigating to Content | Blueprints | Characters, and select FieldPlayer. Open FieldPlayer and navigate to Event Graph:
Here, we create a new variable under the Blueprint tab by navigating to +Add New | Variable. Next, we create a new inventoryScreen
Boolean. Then, we need to make the variable public. This Boolean will be responsible for keeping true or false values, depending on whether the player is on the inventory screen. We may need more variables like these in the figure, but for now, we will just use this variable:
When you are finished creating the inventoryScreen
variable, compile the Blueprint.