"AGDE is freaking awesome!" สำหรับการพัฒนา Android ด้วย Unreal Engine
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Unreal Engine คือเกมเอนจิ้นที่พัฒนาโดย Epic Games ซึ่งช่วยให้ครีเอเตอร์ในอุตสาหกรรมต่างๆ มีอิสระและการควบคุมในการสร้างเนื้อหาบันเทิงล้ำสมัย การแสดงภาพที่น่าสนใจ และโลกเสมือนจริงที่สมจริง เกม Android ที่สำคัญบางเกมสร้างขึ้นโดยใช้ Unreal Engine
รูปที่ 1 ภาพหน้าจอของตัวอย่าง Suntemple ใน Unreal Engine ที่ทำงานบน Pixel 4
Epic และผู้พัฒนาเกมรายอื่นๆ ใช้ Android Studio ในการแก้ไขข้อบกพร่องภาษาโปรแกรม C++, Kotlin หรือ Java แต่นักพัฒนาเกมจํานวนมากมีเวิร์กโฟลว์การพัฒนาสําหรับแพลตฟอร์มอื่นๆ ที่มุ่งเน้นไปที่ Visual Studio
ทีม Unreal Engine Mobile มุ่งเน้นที่การพัฒนาฟีเจอร์และการเพิ่มประสิทธิภาพของ Unreal Engine สำหรับแพลตฟอร์มอุปกรณ์เคลื่อนที่ ทีมได้ใช้ Android Game Development Extension (AGDE) ทั้งสําหรับการพัฒนา Unreal Engine บน Android และสำหรับการแก้ไขข้อบกพร่องและการเพิ่มประสิทธิภาพ Fortnite บน Android
ลักษณะการนำข้อมูลไปใช้
ก่อนที่จะใช้ Android Game Development Extension (AGDE) การแก้ไขข้อบกพร่องและการสร้างสำหรับ Android จำเป็นต้องเปิดโปรเจ็กต์ Gradle ที่สร้างขึ้นใน Android Studio แล้วสลับระหว่างสภาพแวดล้อมการพัฒนา 2 แบบสำหรับการคอมไพล์หรือการแก้ไขข้อบกพร่อง โดยแต่ละแบบจะมีชุดการเชื่อมโยงแป้นพิมพ์ของตนเอง ซึ่งทำให้นักพัฒนาแอปไม่พอใจและใช้เวลานาน โดยเฉพาะสำหรับการพัฒนาแบบซ้ำ เมื่อใช้ AGDE ตอนนี้วงจรการพัฒนาเกม Android ทั้งหมดจะอยู่ใน Visual Studio นักพัฒนาซอฟต์แวร์ที่ย้ายข้อมูลไปยังเวิร์กโฟลว์การพัฒนาแบบใหม่จะพบว่าเวิร์กโฟลว์นี้สะดวกและรวดเร็วกว่ามากสำหรับการพัฒนา Unreal Engine
หลังจากติดตั้ง AGDE แล้ว เมื่อใดก็ตามที่คุณสร้างไฟล์โปรเจ็กต์ Visual Studio สำหรับ Unreal Engine (UE) 4.26.2 ขึ้นไป Unreal Build Tool จะสร้างเป้าหมายการสร้าง Android เพื่อใช้กับ AGDE ด้วย นับจากนั้นมา ประสบการณ์การพัฒนาและการแก้ไขข้อบกพร่อง Unreal Engine จากภายใน Visual Studio จะเป็นแบบเดียวกันสำหรับ Android, PC และแพลตฟอร์มอื่นๆ การกด F5 ใน Visual Studio จะเป็นการเริ่มการทำงานของ AGDE ซึ่งจะทริกเกอร์การสร้าง C++ Android และสร้างหรืออัปเดตแพ็กเกจแอปพลิเคชัน Android (APK) จากนั้น AGDE จะเริ่มต้นเซสชันการแก้ไขข้อบกพร่อง C++ ในอุปกรณ์ ซึ่งจะช่วยให้ใช้ฟีเจอร์การแก้ไขข้อบกพร่องของ Visual Studio ที่คุ้นเคยได้ เช่น จุดหยุดพัก ตัวแปรที่เก็บข้อมูล และดูการถอดประกอบและรีจิสเตอร์ บิลด์ Android ที่เปิดใช้ AGDE ยังใช้ประโยชน์จากการผสานรวม Incredibuild ของ Unreal Build Tool เพื่อจัดเตรียมบิลด์แบบกระจายในคอมพิวเตอร์ต่างๆ สําหรับโค้ด C++ ของ Android ด้วย
รูปที่ 2 ภาพหน้าจอของ AGDE ที่มี Unreal Engine
ผลลัพธ์
"เนื่องจากสภาพแวดล้อมการพัฒนาของเราเน้น Visual Studio เราจึงตื่นเต้นมากที่ได้รวม AGDE ไว้ในเวิร์กโฟลว์ เราถือว่าการใช้ AGDE ของเราประสบความสำเร็จอย่างแน่นอน เนื่องจากวิศวกรของ Fortnite และ Unreal Engine Mobile ใช้ AGDE ในการทำงานทุกวัน" Jack Porter หัวหน้าทีม Unreal Engine Mobile กล่าว "AGDE ช่วยให้ Epic แก้ปัญหาได้สะดวกและรวดเร็วยิ่งขึ้น และการอยู่ใน Visual Studio นั้นช่วยปรับปรุงเวิร์กโฟลว์ได้อย่างมากเมื่อเทียบกับก่อนหน้านี้ การใช้ AGDE ช่วยประหยัดเวลาได้มากและช่วยให้เราพบข้อบกพร่องที่อาจไม่พบได้"
"เราคาดว่าจะใช้ AGDE ต่อไปที่ Epic และวางแผนที่จะให้เอกสารประกอบของเราแนะนำ AGDE เป็นเวิร์กโฟลว์สำหรับนักพัฒนาแอป Unreal Engine บน Android ที่รองรับสำหรับผู้ได้รับอนุญาต Unreal Engine ทั้งหมด" Porter กล่าว
Dmytro Vovk นักพัฒนาซอฟต์แวร์ทีม Unreal Engine Mobile ได้ใช้ AGDE ในการทำงานประจำวันกับ Unreal Engine และ Fortnite Mobile และกล่าวว่า "AGDE ยอดเยี่ยมมาก ในที่สุดฉันก็สามารถแก้ไขข้อบกพร่องของ Assembly และดูรีจิสเตอร์ที่อัปเดตขณะที่ฉันเดินหน้าไปตามโค้ด การแก้ไขข้อบกพร่อง Android จาก Visual Studio ที่แสนสะดวกสบายช่วยให้งานประจำวันของฉันง่ายขึ้นมากและช่วยให้ฉันอยู่ในขั้นตอนการพัฒนาได้อย่างต่อเนื่อง"
เริ่มต้นใช้งาน
ดูวิธีที่ Android Game Development Extension ช่วยให้คุณกำหนดเป้าหมาย Android ได้เมื่อสร้างเกมข้ามแพลตฟอร์มด้วย C/C++ ใน Visual Studio
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2021-07-12 UTC
[[["เข้าใจง่าย","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 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."]]