<

Game Instance

Game Instance

underline
7 Jan 2025
BP

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

How To
Definition

  • Add those two variables into your game instance bp:
    minimap setting
  • 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:
    minimap setting

Character

How To
Definition

  • Open your main character similar to BP_Cobaye.
  • Look for the node SwitchOnEMinimapDisplay and connect your game instance variable to it.
    minimap setting
  • Example game instance casting:
    minimap setting

Controller

How To
Definition

  • Open your controller bp similar to BP_DemoPlayerController.
  • Look in the section comment "Initialise Data" and connect your game instance variable to it.
    minimap setting

Minimap

How To
Definition

  • Open the bp WBP_Minimap.
  • From it Event Graph, look in the event Init and connect your game instance variable to it.
    minimap setting

MiniActorIcon

How To
Definition

  • Open the bp WBP_MiniActorIcon.
  • From it Event Graph, look in the event tick and connect your game instance variable to the pin below.
    minimap setting