Skip to content

Unreal Engine 4

Hive SDK features are added in the form of external libraries. The Hive SDK provides various features such as authentication, payment, push notifications, 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 payment.

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 Hive SDK features.

Android

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

Disable built-in Google billing in Unreal Engine

When using Google Play Store billing, there is a compatibility issue between the latest version of the Google Billing Library used by the Hive SDK and the Google 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 Hive SDK features in Unreal iOS.

Windows

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

Info

For detailed information on each Hive SDK feature (authentication, billing, notification, etc.), please refer to the respective feature guides.