Client #

The Unreal client is available from Heroic Labs. Contact us to request access.

The Hiro.zip file contains all source code and dependencies required in the client code.

After downloading the file, add the contents to your Unreal project’s Plugins folder:

  1. Open your Unreal project
  2. Navigate to the Plugins folder, if one doesn’t exist, create it
  3. Extract the contents of the Hiro.zip file into the Plugins folder
    • Optionally, place the Hiro files into your Unreal Engine Plugins folder to use the plugin across multiple projects
  4. Restart Unreal Engine

Initializing the HiroClient #

To use Hiro in Unreal, you first need to create a NakamaClient. After that, you can initialize Hiro and create a HiroClient by passing in the previously created NakamaClient.

1
2
3
4
5
#include "NakamaClient.h"
#include "HiroClient.h"

UNakamaClient* NakamaClient = UNakamaClient::CreateDefaultClient(TEXT("defaultkey"), TEXT("localhost"), 7350, false, true);
UHiroClient* HiroClient = UHiroClient::CreateDefaultClient(NakamaClient);