「AGDE はすごい!」Unreal Engine による Android 開発に最適
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Unreal Engine は、Epic Games が開発したゲームエンジンです。あらゆる業界のクリエイターが、最先端のエンターテイメント、魅力的な可視化、没入感のある仮想世界を自由かつ制御できるようにします。一部の主要な Android ゲームは Unreal Engine を使用して構築されています。
図 1. Google Pixel 4 で実行されている Unreal Engine Suntemple のサンプルのスクリーンショット
Epic などのゲーム デベロッパーは、C++、Kotlin、または Java プログラミング言語のデバッグに Android Studio を使用していますが、多くのゲーム デベロッパーは、Visual Studio を中心とした他のプラットフォーム用の開発ワークフローを用意しています。Unreal Engine モバイルチームは、モバイル プラットフォーム向け Unreal Engine の機能開発と最適化を担当しています。チームは、Unreal Engine Android 開発と Fortnite Android のデバッグと最適化の両方に、Android Game Development Extension(AGDE)を使用しています。
活用方法
Android Game Development Extension(AGDE)を導入する前、Android のデバッグとビルドを行うには、生成された Gradle プロジェクトを Android Studio で開いてから、コンパイルまたはデバッグのために 2 つの開発環境を切り替える必要がありました。ただし、それぞれに固有のキー バインディング セットが設定されています。これはデベロッパーにとって不快なだけでなく、特に反復開発では時間がかかります。AGDE を使用することで、Android ゲームの開発ワークサイクル全体が Visual Studio 内に含まれるようになりました。新しい開発ワークフローに移行したデベロッパーは、Unreal Engine 開発においてワークフローが大幅に高速化し、便利になりました。
AGDE のインストール後、Unreal Engine(UE)4.26.2 以降用の Visual Studio プロジェクト ファイルを生成するたびに、Unreal Build Tool は AGDE で使用する Android ビルド ターゲットも生成します。以降は、Android でも PC や他のプラットフォームと同様に、Visual Studio 内から Unreal Engine で開発およびデバッグを行うことができます。Visual Studio 内で F5 キーを押すと、AGDE が動作し、C++ Android ビルドがトリガーされ、Android Application Package(APK)が生成または更新されます。次に、AGDE がデバイス上で C++ デバッグ セッションを開始します。これにより、ブレークポイント、ウォッチ、逆アセンブル、レジスタなど、使い慣れた Visual Studio デバッグ機能を使用できるようになります。AGDE 対応の Android ビルドでは、Unreal Build Tool の Incredibuild 統合も利用します。これにより、Android C++ コードのパソコン間での分散ビルドが提供されます。
図 2. Unreal Engine を使用した AGDE のスクリーンショット
結果
「Visual Studio 中心の開発環境を考えると、ワークフローに AGDE を組み込んだことにとても興奮しました。Fortnite と Unreal Engine Mobile のエンジニアは、日常的に AGDE を使用して作業しています」と、Unreal Engine モバイル チームリーダーの Jack Porter 氏は述べています。「AGDE を使用することで、Epic はより迅速かつ簡単に問題をデバッグできるようになりました。また、Visual Studio を使用し続けることで、以前のワークフローから大幅に改善されました。AGDE を使用することで時間を大幅に節約でき、他の方法では見つけられなかったバグを見つけることができました。」
Porter は、次のように述べています。「Epic では引き続き AGDE を使用することが想定されており、ドキュメントではすべての Unreal Engine ライセンシー向けの Unreal Engine Android デベロッパー ワークフローとして AGDE を推奨する予定です。Unreal Engine Mobile チーム デベロッパーである Dmytro Vovk 氏は、Unreal Engine と Fortnite Mobile での日々の作業に AGDE を使用しており、「AGDE は本当にすごい。最後に、アセンブリをデバッグすると、コードをステップ実行しながらレジスタが更新されているのを確認できます。Visual Studio から簡単に Android デバッグを行えるため、日常の作業がはるかに容易になり、開発フローに集中できます。」
始める
Android Game Development Extension を使用すると、Visual Studio で C/C++ を使用してクロス プラットフォーム ゲームをビルドするときに Android をターゲットにできます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2021-07-12 UTC。
[null,null,["最終更新日 2021-07-12 UTC。"],[],[],null,["# "AGDE is freaking awesome!" for Android development with Unreal Engine\n\n[Unreal Engine](https://www.unrealengine.com/en-US/) is a game engine\ndeveloped by Epic Games that gives creators across industries freedom\nand control to deliver cutting-edge entertainment, compelling\nvisualizations, and immersive virtual worlds. Some major Android games are\nbuilt using Unreal Engine.\n\n\n**Figure 1**. Screenshot of Unreal Engine Suntemple sample running on Pixel 4\n\nEpic and other game developers use [Android\nStudio](/studio) for debugging C++, Kotlin or\nJava programming languages, but many game developers have development\nworkflows for other platforms centered around Visual Studio.\nThe Unreal Engine Mobile Team focuses on feature development and\noptimization of Unreal Engine for mobile platforms. The team has been using\nAndroid Game Development Extension (AGDE) for both Unreal Engine Android\ndevelopment and for Fortnite Android debugging and optimization.\n\nHow they use it\n---------------\n\nBefore adopting [Android Game Development Extension (AGDE)](/games/agde), debugging and\nbuilding for Android required opening the generated Gradle project in\nAndroid Studio and then switching between the two development environments\nfor compiling or debugging, each with their own sets of key bindings. This\nwas both jarring to the developer and also time-consuming, especially for\niterative development. Now with AGDE, the entire development work cycle for\nAndroid games is within Visual Studio! Developers who have migrated to the\nnew development workflow will find it is significantly faster and more\nconvenient for Unreal Engine Development.\n\nAfter installing AGDE, whenever you generate your Visual Studio project\nfiles for Unreal Engine (UE) 4.26.2 or later, Unreal Build Tool will also\ngenerate Android build targets for use with AGDE. From then on, the Unreal\nEngine development and debugging experience from within Visual Studio is\nthe same for Android as PC and other platforms. Pressing F5 inside Visual\nStudio kicks AGDE into action, which then triggers the C++ Android build\nand generates or updates the Android Application Package (APK). AGDE then\nstarts a C++ debugging session on the device, allowing the use of familiar\nVisual Studio debugging features such as breakpoints, watches, and also\nlooking at disassembly and registers. AGDE-enabled Android builds also take\nadvantage of Unreal Build Tool's Incredibuild integration to provide\ndistributed builds across computers for Android C++ code.\n\n\n**Figure 2**. Screenshot of AGDE with Unreal Engine\n\nResults\n-------\n\n\"Given our Visual Studio-centric development environment, we were very\nexcited to incorporate AGDE into our workflows. We definitely consider our\nuse of AGDE a success because Fortnite and Unreal Engine Mobile engineers\nare using AGDE daily for their work,\" said Jack Porter, Unreal Engine\nMobile Team Lead. \"AGDE allowed Epic to more quickly and conveniently debug\nissues, and staying inside Visual Studio made a significant improvement\nfrom their previous workflow. The use of AGDE has definitely saved us\nsignificant time, and helped us find bugs that otherwise could not have\nbeen found\".\n\n\"We expect to continue using AGDE at Epic, and plan to have our\ndocumentation recommend AGDE as the supported Unreal Engine Android\ndeveloper workflow for all Unreal Engine licensees,\" said Porter.\nDmytro Vovk, an Unreal Engine Mobile team developer, has been using AGDE as\npart of his daily work on Unreal Engine and Fortnite Mobile, and says \"AGDE\nis freaking awesome! Finally I can debug assembly and see registers being\nupdated as I step through the code. Android debugging from the comfort of\nVisual Studio makes my day-to-day work much easier and keeps me in my\ndevelopment flow.\"\n\nGet started\n-----------\n\nLearn how the\n[Android Game Development Extension](/games/agde)\nenables you to target Android when building cross-platform games with C/C++\nin Visual Studio."]]