Unreal Engine 5
The features of the Hive SDK 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:
- In the Unreal Editor menu, click Edit > Project Settings. The Project Settings window will appear.
-
In the left panel of the Project Settings window, click Dependency – Android / Dependency – iOS under the Hive SDK.
-
In the Hive SDK Dependency – Android / Dependency – iOS screen 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 payment in the Android environment, check only Enable Google Sign-in in the Auth section, and set Market to
Google Play Store
in the Market section. In the Unreal iOS environment, checkEnable Apple AppStore
in the Market section.
Additional settings¶
We will guide you through the additional settings required to install the Hive SDK features.
Android¶
This is the guidance for Android environment settings to use each Hive SDK feature.
Disable built-in Google billing in Unreal Engine¶
When using Google Play Store payment, there is a compatibility issue between the latest version of the Google Billing Library used by the Hive SDK and the Google Billing feature embedded in Unreal Engine, causing build failures. To ensure a successful build, modify the following code.
- Go to /Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay.Build.cs.
- Comment out the following code.
- If you are using Unreal Engine 5.4.4+, the OnlineSubsystemGooglePlay module included in the engine is not removed. Therefore, the following settings are required.
- Remove the file: Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/com/epicgames/unreal/GooglePlayGamesWrapper.java 파일 제거
-
Modify the entire file contents as follows: Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay_UPL.xml
xml <?xml version="1.0" encoding="utf-8"?> <root xmlns:android="http://schemas.android.com/apk/res/android"/>
iOS¶
There are no additional settings required for installing Hive SDK features in Unreal iOS.
Windows¶
There are no additional settings required for installing Hive SDK features in Unreal Windows.
Info
For detailed information on each Hive SDK feature (authentication, billing, notifications, ...), refer to the respective feature guides.