Skip to content
The official GameSparks plugin for Unreal
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.
.github
GameSparksSample Initial commit. Feb 19, 2019
plugin/GameSparks
CODE_OF_CONDUCT.md Creating initial file from template Feb 18, 2019
CONTRIBUTING.md
LICENSE
NOTICE
README.md Initial commit. Feb 19, 2019

README.md

Gamesparks Cpp Unreal

The official GameSparks plugin for Unreal

Prerequisites (depending on which platforms you want to support)

  1. Unreal Engine 4.16+
  2. Android NDK
  3. XCode
  4. Visual Studio

Running the sample

  1. double click GameSparksSample/GameSparksSample.uproject
  2. open the GameSparks GameMode blueprint and set the API credentials
  3. press play in the Unreal Editor

Integrating the SDK into your project

  1. Copy the Plugin located at plugin/GameSparks into the Plugins directory of your project
  2. Add the "GameSparks" module to PublicDependencyModuleNames in your project.Build.cs
  3. Copy GameSparksGameMode.uasset into the Content directory of your project
  4. Adapt the blueprint to your needs

Real-Time Services

There are currently two ways to use the Real-Time Services: Via Blueprints Via C++ code. The sample-project contains two levels in the Rt subdirectory that illustrate both scenarios. If you want to use the Real-Time Services via C++, also have a look sample07Realtime.cpp of the base SDK. The tutorials for the Real-Time Services are a great place to start as well. The API of the C++ SDK is very simmilar to the .NET SDK, so most of the sample code should be easy to adapt.

Online Subsystem

The Unreal Plugin also contains a module that implements parts on Unreals Online Subsystem interface. To Use the OnlineSubsystemGameSparks add the following lines to your DefaultEngine.ini:

[OnlineSubsystemGameSparks] bEnabled=True ApiKey= ApiSecret= bUsePreviewServer=True

Make sure to encrypt your .pak files to make it more difficult to steal the ApiSecret. Be aware that those settings override the Key and Secret used in BluePrints.

License

This library is licensed under the Apache 2.0 License.

You can’t perform that action at this time.