-
Notifications
You must be signed in to change notification settings - Fork 1
Gameplay Interaction Setup Guide
Step 1: Download the Gameplay Interaction plugin from the Epic Games Launcher for whatever engine version you wish to use from 5.2 and above.
Step 2: After downloading, you can find the plugin in the following directory:
{EngineDirectory}/Plugins/Marketplace/GameplayInteraction
Step 3: Make sure your project is closed (the editor is not running), then copy the GameplayInteraction plugin folder to your project and paste it inside the Plugins folder.
-
Note: Create the
Pluginsfolder if it does not exist already, and paste theGameplayInteractionfolder in there.
See the image below for reference:
Step 4: Open your project in Unreal Editor, and go to Edit > Plugins > Gameplay category. Ensure that the plugin "Gameplay Interaction" is enabled. If it's not, click on the enable checkbox to the left, and you might be prompted to restart the editor.
See the image below for reference:
Note: Also, make sure the Gameplay Abilities, Enhanced Input, Common UI, Modular Gameplay plugins are enabled in your project.
Step 5: Now let's get to the implementation. If your project is a Blueprint project (does not have C++ code), you will need to do this step to make it a C++ project.
Go to Tools > New C++ Class and choose Character, PlayerController, PlayerState, or whatever class you would like to use for the Gameplay Ability System component, which is required to use the Gameplay Interaction plugin.
Note: For multiplayer games, it's recommended to put the Gameplay Ability System component in the PlayerState or the Character (I prefer PlayerState). For single-player games, it probably does not matter; you can even put it in the PlayerController class.
I'm going to use the player state in this case.
See the image below for reference:
