Skip to content

Unreal Engine 4

SDK features are added in the form of external libraries. The SDK provides various features such as Authentication, Billing, Notification, and ad banners. Developers need to select and install only the features they want to use. Here, we will guide you through an example of using the most basic features: Authentication and Billing.

Select features to use

To apply only the features you want to use, follow the instructions below.

  1. In the Unreal Editor menu, click Edit > Project Settings. The Project Settings window will appear.
  2. In the left panel of the Project Settings window, click Dependency – Android / Dependency – iOS under the Hive SDK.

  3. In the Hive SDK Dependency – Android / Dependency – iOS screens on the right, select the library dependencies for the features you want to use. For example, to use only Google Authentication and Google Play Store Billing in the Android environment, check only Enable Google Sign-in under Auth, and set Market to Google Play Store under the Market section. In the Unreal iOS environment, check Enable Apple AppStore under Market.

Additional settings

This is the guide for additional settings required to install the SDK features.

Android

This is the guide for Android environment settings to use each SDK feature.

Disable built-in Google Play Billing in Unreal Engine

When using Google Play Store Billing, there is a compatibility issue between the latest version of the Google Play Billing Library used by the SDK and the Google Play Billing functionality embedded in Unreal Engine, causing the build to fail. Modify the code below for a successful build.

  1. Go to /Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay.Build.cs.
  2. Comment out the following code.

    //string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
    //AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "OnlineSubsystemGooglePlay_UPL.xml"));
    

iOS

No additional settings are required for installing SDK features in Unreal iOS.

Windows

No additional settings are required for installing SDK features in Unreal Windows.

Info

For detailed information on each SDK feature (Authentication, Billing, Notification, etc.), please refer to the respective feature guides.