Skip to content

Unreal Engine 5

Follow the instructions below to create and configure the hive_config.xml file. The file will be created at the path below. For more details, please refer to the Basic Configuration Guide.

<

  • Android
    • /HIVESDK/Source/HIVESDK/ThirdParty/android/resource/res/raw/hive_config.xml
  • iOS
    • /HIVESDK/Source/HIVESDK/ThirdParty/iOS/resource/hive_config.xml
  • Windows
    • /HIVESDK/Source/HIVESDK/ThirdParty/Windows/config/hive_config.xml

Setting up with Unreal editor

In the Unreal environment, you can automatically create the hive_config.xml file and assign configuration values using the Unreal Editor.

The method for configuring the hive_config.xml file for using Hive in Unreal Editor is as follows.

  1. Click on Edit > Project Settings in the Unreal Editor menu. The project settings window will appear on the screen.
  2. In the left panel of the project settings window, click on the Hive Config menu. The HIVEConfig XML settings screen will appear.

hive_config.xml example

Below is an example of the hive_config.xml file when using authentication (Google authentication) and payment (Google Play Store or Apple AppStore). Please change, add, or delete values according to the Hive SDK features you want to use and the app environment. Since iOS only supports Apple AppStore payments, set the market to AP in the Unreal iOS environment.

<properties>

    <!-- Hive SDK 공통 설정: START -->
    <!-- 게임 빌드 고유 식별자 설정 -->
    <appId>com.sample.your</appId>

    <!-- Hive 플랫폼의 서버 선택. sandbox는 개발용, real은 상용
        (sandbox, real) -->
    <zone>real</zone>

    <!-- SDK 내부 동작 로그 사용 여부 설정
        (true, false) -->
    <useLog>false</useLog>

    <!-- ageGateU13 적용 여부 설정
        (true, false) -->
    <ageGateU13>false</ageGateU13>

    <!-- Hive Orientation 설정 -->
    <hiveOrientation>landscape</hiveOrientation>

    <!-- 채널 설정(로그인 및 인앱 지원 서비스 플랫폼)
        (C2S: Hive 플랫폼) -->
    <channel>C2S</channel>

    <!-- 결제 마켓 설정
        (GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
    <market>GO</market>

    <!-- 약관 동의 수신 기준 설정
        (device, account) -->
    <agreementDetermineBase>false</agreementDetermineBase>

    <!-- Hive SDK 내부에서 사용되는 HTTP Connect Timeout 시간을 초단위로 설정
        (특별한 경우가 아니면 변경 금지) -->
    <httpConnectTimeout>8</httpConnectTimeout>

    <!-- Hive SDK 내부에서 사용되는 HTTP Read Timeout 시간을 초단위로 설정
        (특별한 경우가 아니면 변경 금지) -->
    <httpReadTimeout>8</httpReadTimeout>
    <!-- Hive SDK 공통 설정: END -->

    <!-- Hive SDK 기능별 설정: START -->
    <!-- 인증 기능 설정: Google 인증 사용 -->
    <providers>             
        <google playAppId="123456789012"  clientId="123456789012-abc.apps.googleusercontent.com"  serverClientId="123456789012-abc.apps.googleusercontent.com"  reversedClientId="com.googleusercontent.apps.123456789012-abc"  deviceFlowClientId="331526026701-gn1abq1ev23nqj7rdvvlaamf7ii4f3u9.apps.googleusercontent.com" />
    </providers>
    <!-- Hive SDK 기능별 설정: END -->

</properties>
Info

The Hive SDK configuration can either store values in the configuration file before app build or change the configuration values during runtime (app execution). For more details, please check Hive SDK configuration.