コンテンツにスキップ

Unreal Engine 4

以下の手順に従って、hive_config.xmlファイルを作成および構成してください。ファイルは以下のパスに作成されます。詳細については、基本構成ガイドを参照してください。

<

  • 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

Unrealエディタの設定

Unreal環境では、hive_config.xmlファイルを自動的に作成し、Unreal Editorを使用して設定値を割り当てることができます。

Unreal EditorでHiveを使用するためのhive_config.xmlファイルの設定方法は次のとおりです。

Unreal EditorメニューでEdit > Project Settingsをクリックします。プロジェクト設定ウィンドウが画面に表示されます。プロジェクト設定ウィンドウの左パネルで、Hive Configメニューをクリックします。HIVEConfig XML設定画面が表示されます。

hive_config.xml の例

以下は、認証(Google認証)と支払い(Google PlayストアまたはApple AppStore)を使用する際のhive_config.xmlファイルの例です。使用したいHive SDKの機能とアプリ環境に応じて、値を変更、追加、または削除してください。iOSはApple AppStoreの支払いのみをサポートしているため、Unreal iOS環境ではマーケットをAPに設定してください。

<properties>

    <!-- Hive SDK Common Settings: START -->
    <!-- Set unique game build identifier -->
    <appId>com.sample.your</appId>

    <!-- Select Hive platform server. sandbox for development, real for production
        (sandbox, real) -->
    <zone>real</zone>

    <!-- Set whether to use SDK internal operation logs
        (true, false) -->
    <useLog>false</useLog>

    <!-- Set whether to apply ageGateU13
        (true, false) -->
    <ageGateU13>false</ageGateU13>

    <!-- Hive Orientation setting -->
    <hiveOrientation>landscape</hiveOrientation>

    <!-- Channel setting (login and in-app support service platform)
        (C2S: Hive platform) -->
    <channel>C2S</channel>

    <!-- Payment market setting
        (GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
    <market>GO</market>

    <!-- Set criteria for receiving agreement to terms
        (device, account) -->
    <agreementDetermineBase>false</agreementDetermineBase>

    <!-- Set HTTP Connect Timeout used internally by Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpConnectTimeout>8</httpConnectTimeout>

    <!-- Set HTTP Read Timeout used internally by Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpReadTimeout>8</httpReadTimeout>
    <!-- Hive SDK Common Settings: END -->

    <!-- Hive SDK Feature Settings: START -->
    <!-- Authentication feature setting: Use Google authentication -->
    <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 Feature Settings: END -->

</properties>
Info

Hive SDKの設定は、アプリのビルド前に設定ファイルに値を保存したり、ランタイム中(アプリ実行中)に設定値を変更したりできます。詳細については、Hive SDKの設定を確認してください。