Install the plugin for Unreal - Amazon GameLift

Install the plugin for Unreal

This section describes the initial installation tasks to add the plugin to an Unreal Engine project. The plugin functionality is available when you have the project open in the Unreal editor.

Note

You can use the Amazon GameLift plugin with a standard version of the UE editor, but you need to use a source-built version when you package your game server build.

Before you start

Here's what you need to use the Amazon GameLift plugin for Unreal Engine:

  • Amazon GameLift plugin for Unreal Engine release package. [Download site].

  • Microsoft Visual Studio 2019 or newer.

  • A source-built version of the Unreal Engine editor. You need a source-built version to package the server components for a multiplayer game. For more details, including additional prerequisites, see the Unreal Engine documentation:

  • A multiplayer game project with C++ game code. If you're working with a Blueprint project, see Unreal documentation on how to generate C++ source code for your project.

Add the plugin to your game project

Complete the following tasks to add the plugin to your game project.

Build the Amazon GameLift C++ server SDK
  1. Unzip the Amazon GameLift plugin for Unreal Engine release package to extract two zip files:

    • amazon-gamelift-plugin-unreal-<>-sdk-<>.zip

    • GameLift-Cpp-ServerSDK-<>.zip.

    Unzip these files.

  2. Open the GameLift-Cpp-ServerSDK-<> folder, and then complete the following instructions for your platform: Linux or Microsoft Windows.

Linux
  1. Run the following commands:

    mkdir out cd out cmake -DBUILD_FOR_UNREAL=1 .. make

    These commands build the /lib/aws-cpp-sdk-gamelift-server.so file.

  2. Copy /lib/aws-cpp-sdk-gamelift-server.so to the amazon-gamelift-plugin-unreal/GameLiftPlugin/Source/GameliftServer/ThirdParty/GameLiftServerSDK/Linux/x86_64-unknown-linux-gnu/ directory.

Microsoft Windows
  1. Run the following commands:

    mkdir out cd out cmake -G "Visual Studio 17 2022" -DBUILD_FOR_UNREAL=1 .. msbuild ALL_BUILD.vcxproj /p:Configuration=Release

    These commands build the following binary files.

    • prefix\bin\aws-cpp-sdk-gamelift-server.dll

    • prefix\lib\aws-cpp-sdk-gamelift-server.lib

  2. Copy the files to the amazon-gamelift-plugin-unreal\GameLiftPlugin\Source\GameliftServer\ThirdParty\GameLiftServerSDK\Win64\ directory.

Complete the following tasks, working in your game project files.

  1. Install the plugin files.

    1. Locate your game project root folder, such as ... > Unreal Projects/[project-name]/. If the Plugins folder doesn't exist there, then create it.

    2. Go to the amazon-gamelift-plugin-unreal folder unzipped from amazon-gamelift-plugin-unreal-<>-sdk-<>.zip. Copy the GameLiftPlugin folder from the gamelift-plugin-unreal folder to the Plugins folder in the game project directory.

  2. Add the plugin to the .uproject file.

    1. In your game project root folder, open the .uproject file.

    2. Update the file to add "GameLiftPlugin" and "WebBrowserWidget" to the Plugins section and enable them. The following code shows the updated .uproject file for a game called "MyGame".

    UnrealProjects > MyGame > MyGame.uproject { ... "Plugins": [ { "Name": "ModelingToolsEditorMode", "Enabled": true, "TargetAllowList": [ "Editor" ] }, { "Name": "GameLiftPlugin", "Enabled": true }, { "Name": "WebBrowserWidget", "Enabled": true } ] }
  3. Change the UE editor version for your project.

    If you created a project for one editor version and now want to change to another version (such as a source-build version), you need to update the project.

    In your game project root folder, select the .uproject file and choose the option Switch Unreal Engine Version. Select a new editor version.

  4. Rebuild the project solution with your updates.

    1. In the project root folder, look for a solution ( *.sln) file. If none exists, select the .uproject file and choose the option Generate Visual Studio project files.

    2. Open the solution file and build or rebuild the project.

  5. Verify that the plugin is enabled in the UE editor.

    Note

    If you If you already have the editor open, you might need to restart the editor before it recognizes the new plugin.

    1. Open the project in your chosen UE editor.

    2. Check the main editor toolbar for the new Amazon GameLift menu button [need image].

    3. Look in the Content Browser for the Amazon GameLift plugin assets. Make sure that your View Options setting has the Show Plugin Content option selected.