Skip to content
Source code for the PlayFab Marketplace Plugin for Unreal
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
4.19
4.20 https://api.playfab.com/releaseNotes/#190821 Aug 22, 2019
4.21 https://api.playfab.com/releaseNotes/#190821 Aug 22, 2019
4.22 https://api.playfab.com/releaseNotes/#190821 Aug 22, 2019
images
.gitignore update gitignore for macos (#8) Jun 6, 2019
LICENSE Initial commit Aug 10, 2018
README.md Update README.md Mar 28, 2019

README.md

Unreal 4 Marketplace Plugin for PlayFab README

1. Overview:

Unreal Marketplace Plugins for PlayFab

Supported versions will be the root level folders, in the form of version numbers. These numbers update regularly when Unreal releases a new version, and will typically include the latest 3 Unreal versions.

The Unreal Marketplace plugin includes:

  • PlayFabSDK Folder: Unreal-Plugin - Put this plugin in your new or existing project to utilize PlayFab
  • ExampleProject Folder: Unreal Plugin ExampleProject - Use this project to start your new game, or demo/test the PlayFab system.

This sdk contains a settings option to set developerSecretKey. For the security of your title, this must be blank for client builds.

2. Prerequisites:

To connect to the PlayFab service, your machine must be running TLS v1.2 or better.

3. Installation:

The following instructions apply the SDKs in the plugin provided.

Assumptions

A new project can be built directly from the example project included with the plugin:

  • Extract the Unreal Plugin package to {UnrealPackageLocation}
  • Navigate to {UnrealPackageLocation}/ExampleProject
  • Right click on ExampleProject.uproject, and "Generate Visual Studio project files" - This process may take several minutes
  • Once finished, open {UnrealPackageLocation}/ExampleProject/ExampleProject.sln in Visual Studio
  • In Visual Studio, "Rebuild Solution" - This process may take several minutes
  • You should now be able to utilize the PlayFab APIs

To use the plugin as a project plugin in Existing Projects:

  • Extract the Unreal SDK package to {UnrealPackageLocation}
  • Navigate to {UnrealPackageLocation}/PlayFabPlugin
  • Copy the PlayFab folder into the "Plugins" directory in your existing Unreal project (If the "Plugins" folder does not exist, create it)
  • Right click on YourProject.uproject, and "Generate Visual Studio project files" - This process may take several minutes
  • Once finished, open your *.sln project file with Visual Studio
  • Open the YourProject.Build.cs file and update the PublicDependencyModuleNames with "PlayFab" (for the Blueprints module) and "PlayFabCpp" (for the C++ module)
  • In Visual Studio, "Rebuild Solution" - This process may take several minutes
  • You should now be able to utilize the PlayFab APIs

To use the plugin as an engine plugin in Existing Projects:

  • In the Epic Games launcher, go to the Unreal Marketplace and search for the PlayFab SDK
  • Click on the PlayFab SDK and click "Install to Engine"
  • If you were previously using the plugin as a project plugin, delete the PlayFab folder under "Plugins" directory in your existing Unreal project.
  • Update the YourProject.uproject file with the Plugin section as follows :
"Modules": [
    {
      "Name": "YourProject",
      "Type": "Runtime",
      "LoadingPhase": "Default",
      "AdditionalDependencies": [
        "Engine"
      ]
    }
],
"Plugins": [    // <---
    {
      "Name": "PlayFab",
      "Enabled": true,
      "MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/217fdf581b784571af03d3fb6580368f"
    }
]
  • Right click on YourProject.uproject, and "Generate Visual Studio project files" - This process may take several minutes
  • Once finished, open your *.sln project file with Visual Studio
  • Open the YourProject.Build.cs file and update the PublicDependencyModuleNames with "PlayFab" (for the Blueprints module) and "PlayFabCpp" (for the C++ module)
  • In Visual Studio, "Rebuild Solution" - This process may take several minutes
  • You should now be able to utilize the PlayFab APIs

Once the plugin is properly installed, run the Unreal Engine environment editor. Navigate to the dropdown menus: Edit -> Project Settings On the left menu, scroll to the bottom, find Plugins -> PlayFab Fill in the TitleId with the appropriate value from your project, found in the PlayFab Game Manager If this is a server process, you can also fill in the developerSecretKey. For the security of your title, this must be blank for client builds.

4. Troubleshooting:

If you experience this error: Plugin 'PlayFab' failed to load because module 'PlayFab' could not be found. Please ensure the plugin is properly installed, otherwise consider disabling the plugin for this project.

Your Unreal project is not set up to be a C++ project. Here is a tutorial that will help fix this problem. http://idkudk.blogspot.com/2015/02/how-to-get-plugins-to-package-correctly.html

General troubleshooting:

For a complete list of available APIs, check out the online documentation.

Contact Us

We love to hear from our developer community! Do you have ideas on how we can make our products and services better?

Our Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services.

Forums, Support and Knowledge Base

5. Acknowledgements

The PlayFab Unreal C++ SDK was built by Phoenix Labs, and submitted to PlayFab November, 2015

On September 2017, Montana Tuska rebuilt this plugin, adding support for 4.17 and other major improvements, on September, 2017.

The initial draft of PlayFab UnrealBlueprintSDK and the Blueprint Tutorial in this document were built by Joshua Lyons, and submitted to PlayFab October, 2015

Montana Tuska also makes and supports another plugin which combines the Unreal OnlineSubsystem, and the PlayFab API. You can see it on his GitLab repo

This plugin is based off of the above mentioned plugins.

6. Copyright and Licensing Information:

Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/

Full details available within the LICENSE file.

You can’t perform that action at this time.