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 Editorでの設定¶
Unreal環境では、Unreal Editorを使用してhive_config.xmlファイルに設定を自動的に作成および割り当てることができます。Unreal EditorメニューからEdit > Project Settingsをクリックします。プロジェクト設定ウィンドウが表示されます。プロジェクト設定ウィンドウの左パネルで、プラグインタイトルの下にあるHIVEConfig XMLメニューをクリックします。HIVEConfig XML設定画面が表示されます。
Google Playの設定¶
一般的なGoogleログインを使用するには、Googleコンソールから取得したAppIDをGoogle Play設定フィールドGoogle Play App IDに入力してください。
HiveConfig 設定¶
HIVEConfig XML設定画面では、hive_config.xmlファイルの設定可能な値の中から以下の値を設定できます。例えば、Unreal Android環境でGoogle Play Storeの支払いを使用するには、Marketの値をGOに設定し、Unreal iOS環境でApple AppStoreの支払いを使用するには、APに設定します。 
<
| フィールド | 説明 | 値の範囲 | 
|---|---|---|
| ゾーン | Hive サーバー環境 | 
 | 
| ログ記録 | Hive クライアント内部操作のログを有効にするかどうか | 
 | 
| プッシュ | Hive プラットフォームが提供するプッシュサービスを使用するかどうか | 
 | 
| 会社 | ゲーム出版会社 | 
 | 
| チャンネル | ゲームアプリで使用されるログインサービスプラットフォーム | Hive(デフォルト) | 
| マーケット | このアプリがリリースされるマーケット | 
 | 
hive_config.xml の例¶
以下は、認証(Google認証)および支払い(Google PlayストアまたはApple AppStore)を使用する際のhive_config.xmlファイルの例です。使用したいHive SDKの機能とアプリ環境に応じて、値を変更、追加、または削除してください。iOSはApple AppStoreの支払いのみをサポートしているため、Unreal iOS環境では市場をAPに設定してください。
<properties>
    <!-- Common settings for Hive SDK: START -->
    <appId>com.sample.your</appId>
    <gameLanguage>en</gameLanguage>
    <!-- Select the server of the Hive platform. sandbox is for development, real is for production
        (sandbox, real) -->
    <zone>real</zone>
    <!-- Set whether to use SDK internal operation logs
        (true, false) -->
    <useLog>false</useLog>
    <!-- Company settings
        (C2S: Com2us, GVI: Com2us Holdings) -->
    <company>C2S</company>
    <!-- Channel settings
        (C2S: Hive platform) -->
    <channel>C2S</channel>
    <!-- Payment market settings
        (GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
    <market>GO</market>
    <!-- Set the HTTP Connect Timeout time used inside the Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpConnectTimeout>8</httpConnectTimeout>
    <!-- Set the HTTP Read Timeout time used inside the Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpReadTimeout>8</httpReadTimeout>
    <agreementDetermineBase>device</agreementDetermineBase>
    <!-- Common settings for Hive SDK: END -->
    <!-- Settings for each Hive SDK feature: START -->
    <!-- Authentication product settings: Using 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>
<!-- Settings for each Hive SDK feature: END -->
</properties>
Info
Hive SDKの設定は、アプリをビルドする前に設定ファイルに値を保存するか、実行時(アプリ実行中)に設定を変更することで構成できます。詳細については、Hive SDK設定を参照してください。

