"AGDE 建置了驚人的!在利用 Unreal Engine 進行 Android 開發作業時,
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Unreal Engine 是由 Epic Games 開發的遊戲引擎,可讓不同產業的創作者自由發揮與控管權,打造最先進的娛樂內容、引人入勝的視覺化效果,以及沉浸式虛擬世界。部分大型 Android 遊戲是使用 Unreal Engine 打造而成
圖 1. 在 Pixel 4 上執行的 Unreal Engine Suntemple 範例螢幕截圖
博文和其他遊戲開發人員使用 Android Studio 對 C++、Kotlin 或 Java 程式設計語言進行偵錯,但許多遊戲開發人員都擁有以 Visual Studio 為中心的其他平台開發工作流程。Unreal Engine 行動團隊專注於開發及最佳化 Unreal Engine 行動平台的功能,該團隊一直使用 Android Game Development Extension (AGDE) 進行 Unreal Engine Android 開發,以及用於 Fortnite Android 偵錯和最佳化,
使用方式
採用 Android Game Development Extension (AGDE) 前,如要針對 Android 進行偵錯和建構,必須先在 Android Studio 中開啟產生的 Gradle 專案,然後在兩個開發環境間切換,而且這些環境各有專屬的按鍵繫結組合。這對開發人員來說很不方便,也相當耗時,尤其對於疊代開發而言更是如此。現在有了 AGDE,Android 遊戲的完整開發工作週期就是在 Visual Studio 中完成!遷移至新版開發工作流程的開發人員會發現,這個工作流程既快速又方便,也能輕鬆進行 Unreal Engine 開發作業。
安裝 AGDE 後,每當您為 Unreal Engine (UE) 4.26.2 以上版本產生 Visual Studio 專案檔案時,Unreal Build Tool 也會產生 Android 建構目標,以便與 AGDE 搭配使用。此後,Visual Studio 中的 Unreal Engine 開發與偵錯體驗,與電腦和其他平台相同。在 Visual Studio 中按下 F5 會啟動 AGDE 動作,進而觸發 C++ Android 版本,並產生或更新 Android 應用程式套件 (APK)。接著,AGDE 會在裝置上啟動 C++ 偵錯工作階段,以便使用熟悉的 Visual Studio 偵錯功能,例如中斷點、手錶,以及拆解和註冊。支援 AGDE 的 Android 版本還利用 Unreal Build Tool 的 Incredibuild 整合功能,為各種電腦提供 Android C++ 程式碼適用的發布版本。
圖 2. AGDE 搭配 Unreal Engine 的螢幕截圖
成果
「考量以 Visual Studio 為中心的開發環境,我們很高興能將 AGDE 整合到工作流程中。Unreal Engine 行動團隊主管 Jack Porter 表示,我們發現「AGDE 讓 Epic 能夠更快速輕鬆地偵錯問題,並且留在 Visual Studio 內部,比先前的工作流程大幅提升。使用 AGDE 絕對幫我們省下大量時間,並協助我們找到原本無法發現的錯誤。」
Porter 表示:「我們預計會繼續使用 Epic 的 AGDE,並規劃採用 AGDE 做為所有 Unreal Engine 授權人所支援的 Unreal Engine Android 開發人員工作流程。」
Unreal Engine Mobile 團隊開發人員 Dmytro Vovk 一直在 Unreal Engine 和 Fortnite Mobile 上
使用 AGDE 執行日常工作,以及說最後,我可以對組合進行偵錯,並看到註冊過程隨著我逐步執行程式碼而更新。Visual Studio 帶給我的 Android 偵錯功能,讓我的日常工作更加輕鬆,而且讓我得以專心開發流程。」
開始使用
瞭解 Android Game Development Extension 如何在 Visual Studio 中使用 C/C++ 建構跨平台遊戲。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2021-07-12 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2021-07-12 (世界標準時間)。"],[],[],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."]]