PlayFab is the PlayFab integration plugin for Unreal Engine 4 that makes REST server communications to the PlayFab back-end service streamlined. This plugin is based of Ufna's VaRest plugin. The core JsonObject and JsonValue is his work. The integration of the PlayFab APIs is mine.
Key features:
- No C++ coding required, everything can be managed via blueprints
- Blueprintable FJsonObject wrapper with almost full support of Json features: different types of values, arrays, both ways serializarion to FString, etc.
- Blueprintable FJsonValue wrapper - full Json features made for blueprints!
- PlayFab REST API manager to start working with PlayFab out of the box!
Current version: 1.0
Installation:
- Copy all files into your plugins folder. /Plugins/PlayFab/
- Generate Visual Studio Files for your project.
- Rebuild your game. That is it!
Setup:
- Navigate to the PlayFabProxy.cpp file in the Plugins/PlayFab/Source/PlayFab/Private/PlayFabProxy.cpp
- Edit the top part of the file to match the AppId and SecretKeys provided to you by PlayFab.
- Replace with your TitleID
- Replace with your secret key given to you by PlayFab.
Use:
To use the plugin all you do is drag an API call onto your Event Graph. The API calls can be found under PlayFab and then either Client or Server as can seen in the image below.
Attach the node to an event, pass in the required variables and then attach whatever you want to handle the response up to the graph like below.
That is all it takes! The PlayFab nodes will send out the API call, wait for a response and pass back the response from the PlayFab servers. Take a look at their documentation to see what each API call returns and expects.
Note: For the String array pins just make an empty array if you do not want specific key values returned but want them all.
Unreal® is a trademark or registered trademark of Epic Games, Inc. in the United States of America and elsewhere.
Unreal® Engine, Copyright 1998 – 2014, Epic Games, Inc. All rights reserved.