Getting Started with Unreal Engine 5
The Nunu SDK 2.0.0 plugin lets an AI agent inspect and control an Unreal game through Flayer functions. It uses Eldritch Link v5 (EL5), forwards engine logs to the active session, and provides a game-instance subsystem for connection and library management.
The plugin targets Unreal Engine 5 and supports Win64, Android, and iOS. EL5 uses a binary WebSocket RPC protocol. Use an EL5 connection string from the Flayer debugger in Nexus.
Install the plugin
- Download and unzip the Unreal SDK package from the Nunu hub.
- Copy the folder containing
NunuSDK.uplugininto your project’sPluginsdirectory. - Enable Nunu SDK in Edit > Plugins, then restart the editor if prompted.
- For C++ projects, add the runtime module to your game module’s
Build.csdependencies:
PublicDependencyModuleNames.Add("NunuSDK");- Rebuild the project.

The runtime initializes as a UGameInstanceSubsystem. It discovers Flayer libraries for each game instance and owns that instance’s connection across world travel.
Configure and connect
Open Edit > Project Settings > Plugins > NunuSDK to configure runtime activation, the optional console, connection notifications, console hotkeys, and the console touch gesture. The console opens with F7 or three taps with one finger in the bottom-left corner by default. See Build Configuration for build behavior and settings.

Start a Play session, open the console, and paste an EL5 connection string from the Flayer debugger. You can also launch a desktop build with a connection string:
MyGame.exe -nunu=els://agent.example.com:443/unreal-player-1The URI uses el:// for WebSocket or els:// for a WebSocket protected by validated TLS. Include an explicit port and one connection ID path segment.
For Android and iOS setup, see Mobile Deep Links.
C++ code can connect through the subsystem:
#include "NunuSubsystem.h"
if (UNunuSubsystem* Nunu = UNunuSubsystem::Get(this))
{
Nunu->Connect(TEXT("els://agent.example.com:443/unreal-player-1"));
}The connection request runs on the game thread. A true return value means the request was accepted; observe OnConnectionStateChanged or GetConnectionState() to confirm the socket is connected. The subsystem also exposes Disconnect(), Reconnect(), and connection error details to C++ and Blueprint.

In the Flayer debugger, fetch functions and call game_state to confirm the connection.
Add a Flayer function
Create a subclass of UFlayerFunctionLibrary and register a reflected function in its constructor:
#pragma once
#include "CoreMinimal.h"
#include "Flayer/FlayerFunctionLibrary.h"
#include "MyFlayerFunctions.generated.h"
UCLASS()
class UMyFlayerFunctions : public UFlayerFunctionLibrary
{
GENERATED_BODY()
public:
UMyFlayerFunctions()
{
REGISTER_FLAYER_FUNCTION_SHORT(
EchoText,
"echo_text",
"Returns the supplied text"
);
}
UFUNCTION()
FString EchoText(const FString& Text)
{
return Text;
}
};Native libraries and saved Blueprint libraries are discovered automatically. The example returns one string value. See Flayer Function Libraries for supported signatures, metadata, and Blueprint registration. Use Flayer Promises for work that spans multiple frames.