"AGDE فوقالعاده است!" برای توسعه اندروید با Unreal Engine
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Unreal Engine یک موتور بازی است که توسط Epic Games ساخته شده است که به سازندگان در سراسر صنایع آزادی و کنترل برای ارائه سرگرمی های پیشرفته، تجسم های متقاعد کننده و جهان های مجازی فراگیر می دهد. برخی از بازی های اصلی اندروید با استفاده از Unreal Engine ساخته شده اند.
شکل 1 . اسکرین شات نمونه Unreal Engine Suntemple در حال اجرا بر روی Pixel 4
Epic و دیگر توسعهدهندگان بازی از Android Studio برای اشکالزدایی زبانهای برنامهنویسی C++، Kotlin یا Java استفاده میکنند، اما بسیاری از توسعهدهندگان بازی، گردشهای کاری توسعه برای پلتفرمهای دیگر با محوریت Visual Studio دارند. تیم موبایل Unreal Engine بر توسعه ویژگی و بهینه سازی Unreal Engine برای پلتفرم های موبایل تمرکز دارد. این تیم از افزونه توسعه بازی اندروید (AGDE) هم برای توسعه اندروید Unreal Engine و هم برای اشکال زدایی و بهینه سازی اندروید Fortnite استفاده کرده است.
چگونه از آن استفاده می کنند
قبل از استفاده از برنامه افزودنی توسعه بازی اندروید (AGDE) ، اشکال زدایی و ساختن برای اندروید نیاز به باز کردن پروژه Gradle ایجاد شده در Android Studio و سپس جابجایی بین دو محیط توسعه برای کامپایل یا اشکال زدایی داشت، که هر کدام مجموعهای از اتصالات کلیدی خاص خود را داشتند. این هم برای توسعهدهنده آزاردهنده بود و هم زمان بر بود، مخصوصاً برای توسعه تکراری. اکنون با AGDE، کل چرخه توسعه بازیهای اندروید در ویژوال استودیو است! توسعه دهندگانی که به گردش کار توسعه جدید مهاجرت کرده اند، متوجه می شوند که برای توسعه موتور Unreal به طور قابل توجهی سریع تر و راحت تر است.
پس از نصب AGDE، هر زمان که فایل های پروژه ویژوال استودیو خود را برای Unreal Engine (UE) 4.26.2 یا بالاتر تولید می کنید، Unreal Build Tool نیز اهداف ساخت اندروید را برای استفاده با AGDE ایجاد می کند. از آن به بعد، تجربه توسعه و اشکال زدایی Unreal Engine از داخل ویژوال استودیو برای اندروید مانند رایانه شخصی و سایر پلتفرم ها است. با فشار دادن F5 در داخل ویژوال استودیو، AGDE وارد عمل میشود، که سپس ساخت Android C++ را آغاز میکند و بسته برنامه Android (APK) را تولید یا بهروزرسانی میکند. سپس AGDE یک جلسه اشکالزدایی C++ را روی دستگاه شروع میکند و امکان استفاده از ویژگیهای آشنای اشکالزدایی ویژوال استودیو مانند نقاط شکست، ساعتها، و همچنین بررسی جداسازی و ثبت را میدهد. بیلدهای اندرویدی دارای AGDE نیز از ادغام Incredibuild ابزار Unreal Build برای ارائه بیلدهای توزیع شده در بین رایانهها برای کد Android C++ بهره میبرند.
شکل 2 . اسکرین شات AGDE با موتور Unreal
نتایج
جک پورتر گفت: "با توجه به محیط توسعه مبتنی بر ویژوال استودیو، ما بسیار هیجان زده بودیم که AGDE را در جریان کاری خود وارد کنیم. ما قطعا استفاده خود از AGDE را موفقیت آمیز می دانیم زیرا مهندسان Fortnite و Unreal Engine Mobile روزانه از AGDE برای کار خود استفاده می کنند." رهبر تیم موبایل Unreal Engine. "AGDE به Epic اجازه داد تا سریعتر و راحت تر مشکلات را اشکال زدایی کند، و ماندن در ویژوال استودیو پیشرفت قابل توجهی را نسبت به گردش کار قبلی آنها ایجاد کرد. استفاده از AGDE قطعاً در زمان ما صرفه جویی کرده است و به ما کمک می کند تا اشکالاتی را پیدا کنیم که در غیر این صورت نمی توانستیم پیدا کنیم." .
پورتر گفت: "ما انتظار داریم به استفاده از AGDE در Epic ادامه دهیم، و برنامه ریزی می کنیم که اسناد ما AGDE را به عنوان گردش کار توسعه دهنده اندروید Unreal Engine پشتیبانی شده برای همه دارندگان مجوز Unreal Engine توصیه کند." Dmytro Vovk، یک توسعهدهنده تیم Unreal Engine Mobile، از AGDE به عنوان بخشی از کار روزانه خود روی Unreal Engine و Fortnite Mobile استفاده میکند و میگوید: "AGDE فوقالعاده است! در نهایت میتوانم اسمبلی را اشکال زدایی کنم و ثبتها را که بهروزرسانی میشوند، ببینم. اشکال زدایی اندروید از طریق ویژوال استودیو کار روزانه من را بسیار آسان می کند و من را در جریان توسعه نگه می دارد.
شروع کنید
بیاموزید که چگونه برنامه افزودنی توسعه بازی اندروید به شما امکان می دهد هنگام ساخت بازی های چند پلتفرمی با C/C++ در ویژوال استودیو، اندروید را هدف قرار دهید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و 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."]]