{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Unreal Engine SDK Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"unreal-engine-sdk-import-integration","__idx":0},"children":["Unreal Engine SDK Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unreal Engine SDKを使用して、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.unrealengine.com/"},"children":["Unreal Engine"]},"アプリからTreasure Dataへのデータ送信を開始できます。詳細については、次のリポジトリを参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132426.f322f86a09d78e50b2c307af1257421ea14e3b6fc60f4ed28604bd3eedc1d4b1.3fd85dbb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/td-ue4-sdk"},"children":["Unreal Engine 4 SDK Repository"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件","__idx":1},"children":["要件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Unreal Engine 4.14"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data書き込み専用APIキー（",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Keys"]},"を選択）"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"はじめに","__idx":2},"children":["はじめに"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のドキュメントは、現在のUnreal Engineがソースからコンパイルされているか、サードパーティプラグインをビルドできるようにすべての依存関係を持っていることを前提としています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プラグインのダウンロードと配置","__idx":3},"children":["プラグインのダウンロードと配置"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["メインGITリポジトリからプラグインのコピーを取得します："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ git clone http://github.com/treasure-data/td-ue4-sdk\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td-ue4-sdk"]},"をEngineプラグインフォルダにコピーします。ターゲットパスは次のとおりです："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"UnrealEngine/Engine/Plugins/td-ue4-sdk\n"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["または、プラグインコンテンツをProjectプラグインディレクトリ内にコピーすることもできますが、このアプローチはLinux開発環境では機能しません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"プラグインのビルド","__idx":4},"children":["プラグインのビルド"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プラグインをビルドするには、ビルドルールを生成する必要があります。この目的のために、UE4 Engineは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GenerateProjectFiles"]},"というスクリプトを提供しています："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GenerateProjectFiles.bat"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GenerateProjectFiles.sh"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システム（UnixベースまたはWindow）に応じて、コマンドラインから適切なスクリプトを実行します："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プラグインがProjectディレクトリ内（Project/Plugins）にある場合は、Projectルートディレクトリに移動してスクリプトを実行します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プラグインがEngine内にある場合は、Unreal Engineソースルートディレクトリからコマンドを実行します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コマンドが終了したら、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["make"]},"コマンドを入力します："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ make\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["数秒後、プラグインバイナリが利用可能になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プラグインビルドフェーズの高速化","__idx":5},"children":["プラグインビルドフェーズの高速化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["場合によっては、プラグインのみを再ビルドする必要があります。通常の",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["make"]},"コマンドを使用すると、依存関係を修正するためにいくつかのスクリプトを実行するパースを行うため、数分かかる場合があります。プロセスを高速化するには、次のオプションを追加できます："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ make UE4Editor ARGS=-canskiplink\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"プロジェクトのanalyticsプラグインを有効にする","__idx":6},"children":["プロジェクトのAnalyticsプラグインを有効にする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unreal Engine 4エディタ内で、プロジェクトと",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["plugins"]},"ウィンドウを開きます："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Edit > Plugins"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に、2つの必要なプラグインを有効にします："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Blueprints：Built-in > Analyticsにあります"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data：Installed > Analyticsにあります"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132504.d8ef25004a8914d9aeb816f1eb52423fec61361b2651eb26a106463e80f05c0e.3fd85dbb.png","alt":""},"children":[]},{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132513.795ddcb8d26225801bc0bb865cdde797762f202f6828b83cca73769d289dd941.3fd85dbb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"プロジェクト設定を構成する","__idx":7},"children":["プロジェクト設定を構成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロジェクトディレクトリから、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Config/DefaultEngine.ini"]},"ファイルを開いて編集し、次の内容を下部に追加します："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"c++","header":{"controls":{"copy":{}}},"source":"[Analytics]\n ProviderModuleName=TreasureData\nTDApiKey=TD-WRITE-ONLY-KEY\nTDDatabase=DATABASE_NAME\nSendInterval=10\n\n[AnalyticsDevelopment]\n ProviderModuleName=TreasureData\nTDApiKey=TD-WRITE-ONLY-KEY\nTDDatabase=DATABASE_NAME\nSendInterval=10\n\n[AnalyticsTest]\n ProviderModuleName=TreasureData\nTDApiKey=TD-WRITE-ONLY-KEY\nTDDatabase=DATABASE_NAME\nSendInterval=10\n","lang":"c++"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ファイルを保存し、Unreal Engine Editorを再起動します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"blueprintsを通じてメトリクスを収集する","__idx":8},"children":["Blueprintsを通じてメトリクスを収集する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エディタで、Blueprintsドロップダウンメニューを選択し、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Open Level Blueprint"]},"オプションを選択します："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132603.0ebbdf6e5796a5cd6d2ad8fb6e0450ebc3a4dcd3b66aebc89b8ce7d24ff9a8b6.3fd85dbb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Event graphsで、さまざまなイベントをAnalytics機能に接続できます。例として、次の画像は",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Session Start"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Session End"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Record Event w/Attributes"]},"イベントを追跡する方法を示しています："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ゲームが開始された後、プラグインはイベントをTreasure Dataに送信します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data","__idx":9},"children":["Treasure Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ゲームイベントをクエリするには、Treasure コンソールに移動し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]},"を選択し、ゲームで使用されているデータベースを開きます（Config/DefaultEngine.ini > TDDatabase）："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132637.e2074fcadb175961c18432787b104e2c10deac7024895099460750092f25a6a8.3fd85dbb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、2つのテーブルが作成されます："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sessions：開始および停止セッション"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Events：属性の有無にかかわらずすべてのイベント。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レコードをクエリするには、テーブル名を選択し、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Query"]},"ボタンを選択します。デフォルトでは、次の例のようにSQLクエリを発行できます："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT * from events;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191022-132726.316a30dce56d38fcfeaf69fc5934c01f73f7b3bf0802ed8f0a9a6c1b8c16e3d0.3fd85dbb.png","alt":""},"children":[]}]}]},"headings":[{"value":"Unreal Engine SDK Import Integration","id":"unreal-engine-sdk-import-integration","depth":1},{"value":"要件","id":"要件","depth":2},{"value":"はじめに","id":"はじめに","depth":2},{"value":"プラグインのダウンロードと配置","id":"プラグインのダウンロードと配置","depth":3},{"value":"プラグインのビルド","id":"プラグインのビルド","depth":2},{"value":"プラグインビルドフェーズの高速化","id":"プラグインビルドフェーズの高速化","depth":3},{"value":"プロジェクトのAnalyticsプラグインを有効にする","id":"プロジェクトのanalyticsプラグインを有効にする","depth":2},{"value":"プロジェクト設定を構成する","id":"プロジェクト設定を構成する","depth":2},{"value":"Blueprintsを通じてメトリクスを収集する","id":"blueprintsを通じてメトリクスを収集する","depth":2},{"value":"Treasure Data","id":"treasure-data","depth":2}],"frontmatter":{"seo":{"title":"Unreal Engine SDK Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/unreal-engine-sdk-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}