Skip to Content

Build Configuration

The plugin uses the WITH_NUNU_SDK compile definition to include or exclude SDK functionality. The Enable Nunu SDK Runtime project setting controls runtime activation and desktop and mobile Game and Client build capability.

Project settings

Open Edit > Project Settings > Plugins > NunuSDK. Runtime settings are saved under [/Script/NunuSDK.NunuSDKSettings] in DefaultGame.ini.

Nunu SDK runtime and console options in Unreal Project Settings

SettingDefaultBehavior
Enable Nunu SDK RuntimeEnabledActivates the SDK for new game instances and controls compile capability for packaged desktop and mobile Game and Client targets
Enable Nunu ConsoleEnabledAllows the optional in-game console
Show Connection InfoEnabledShows a temporary connection state notification
Show Connection StatusDisabledShows a persistent viewport status indicator
Console Toggle ChordsF7Configures console hotkeys; an empty list disables hotkeys
Console Touch GestureEnabled; 3 taps, bottom-leftConfigures the console touch gesture, including corner, tap count, and timing
Console Widget ClassPackage consoleSelects the console widget; a null class disables it

Restart Play after changing the runtime enable setting. Connect through the console, a launch argument, a mobile deep link, or the subsystem API.

Compile capability

UnrealBuildTool defines WITH_NUNU_SDK as 1 when the SDK is compiled into the target and 0 when it is excluded.

  • Editor targets include SDK support for Play sessions; the runtime setting controls activation.
  • Packaged Win64, Linux, Mac, Android, and iOS Game and Client targets use Enable Nunu SDK Runtime to select compile capability across build configurations, including Shipping.
  • Server targets default to WITH_NUNU_SDK=0.

A project target can explicitly choose compile capability in its Target.cs file:

ProjectDefinitions.Add("WITH_NUNU_SDK=1");

Set the value to 0 to compile the target without SDK capability. Define exactly one value. Runtime activation still requires the project setting to be enabled. Game code that references SDK types can guard those references with:

#if WITH_NUNU_SDK #include "NunuSubsystem.h" #endif

For C++ game modules, add NunuSDK to the module dependencies in Build.cs.

Build metadata

Desktop Game and Client targets stage a .nunu.json file beside the target executable. It reports the compiled SDK capability, SDK version, Unreal version, platform, build configuration, and target type. The SDK version comes from VersionName in NunuSDK.uplugin.

Android and iOS builds embed SDK metadata in their platform manifests:

PlatformLocationCompiled capabilitySDK version
AndroidApplication metadata in AndroidManifest.xmlai.nunu.sdk.enabledai.nunu.sdk.version
iOSInfo.plistNunuSDKEnabledNunuSDKVersion

The enabled field reflects the resolved WITH_NUNU_SDK value, including an explicit target override, and is written for both enabled and disabled builds. The version comes from VersionName in the plugin descriptor.

See Mobile Deep Links for URL scheme registration and connection behavior.

Last updated on