Game Instance
Game Instance
The game instance is used in this plugin to track the current region and for the mini map setting.
Make the following changes into your project using your game instance.
GameInstance Setup
-
Add those two variables into your game instance bp:
RegionMap
: represent your current world map or region.
Minimap Setting
: is your mini map config to display it as Fixed North or Rotate with Camera.
- Set the new created game instance from project setting:
Character
- Open your main character similar to BP_Cobaye.
- Look for the node SwitchOnEMinimapDisplay and connect your game instance variable to it.
- Example game instance casting:
Controller
- Open your controller bp similar to BP_DemoPlayerController.
- Look in the section comment "Initialise Data" and connect your game instance variable to it.
Minimap
- Open the bp WBP_Minimap.
- From it Event Graph, look in the event Init and connect your game instance variable to it.
MiniActorIcon
- Open the bp WBP_MiniActorIcon.
- From it Event Graph, look in the event tick and connect your game instance variable to the pin below.