""AGDE جهاز مذهل للغاية!"؛ في تطوير Android باستخدام Unreal Engine
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
Unreal Engine هو محرّك ألعاب من تطوير Epic Games، ويمنح صنّاع المحتوى في مختلف المجالات الحرية والتحكّم لتقديم محتوى ترفيهي متطور وعرض مرئيات جذّابة وعوالم افتراضية شاملة. تم تصميم بعض ألعاب Android
الرئيسية باستخدام Unreal Engine.
الشكل 1. لقطة شاشة لعيّنة Unreal Engine Suntemple على هاتف Pixel 4
يستخدم مطوّرو الألعاب Epic وغيرهم من مطوّري الألعاب Android
Studio لتصحيح الأخطاء في لغات البرمجة C++ وKotlin أو
Java، ولكن العديد من مطوّري الألعاب يتّبعون عمليات التطوير
الخاصة بالأنظمة الأساسية الأخرى التي تتمحور حول Visual Studio.
يركِّز فريق Unreal Engine Mobile على تطوير الميزات وتحسين أداء Unreal Engine للأنظمة الأساسية للأجهزة الجوّالة. كان الفريق يستخدم
إضافة Android Game Development Extension (AGDE) في تطوير كل من Unreal Engine Android وتصحيح الأخطاء وتحسين Android في Fortnite.
طريقة الاستخدام
قبل استخدام إضافة تطوير ألعاب Android (AGDE)، كان تصحيح الأخطاء والإنشاء لنظام Android يتطلب فتح مشروع Gradle الذي تم إنشاؤه في "استوديو Android" ثم التبديل بين بيئتي التطوير
للتجميع أو تصحيح الأخطاء، مع تخصيص كل مجموعة من الروابط الأساسية لكل منها. وكان هذا الأمر مزعجًا للمطور ويستغرق وقتًا طويلاً أيضًا، خاصةً بالنسبة إلى التطوير التكراري. من خلال AGDE، أصبحت دورة تطوير ألعاب
Android بأكملها متوفرة في Visual Studio. سيجد المطورون الذين انتقلوا إلى
سير العمل الجديد للتطوير أن هذه الطريقة أسرع وأكثر ملاءمة
لتطوير المحرك بشكل غير حقيقي.
بعد تثبيت AGDE، كلما أنشأت ملفات مشاريع Visual Studio
للإصدار 4.26.2 من Unreal Engine أو الإصدارات الأحدث، ستعمل أداة Unreal Build Tool أيضًا على
إنشاء أهداف إصدار Android لاستخدامها مع AGDE. ومنذ ذلك الحين، تصبح تجربة التطوير وتصحيح الأخطاء في UnrealEngine من داخل Visual Studio
نفسها في Android مثل أجهزة الكمبيوتر الشخصي والأنظمة الأساسية الأخرى. يؤدي الضغط على مفتاح F5 في Visual Studio إلى تشغيل AGDE، ما يؤدي بعد ذلك إلى تشغيل إصدار C++ Android وإنشاء حزمة تطبيق Android (APK) أو تحديثها. تبدأ AGDE بعد ذلك جلسة تصحيح أخطاء C++ على الجهاز، ما يسمح باستخدام ميزات تصحيح أخطاء Visual Studio المألوفة مثل نقاط التوقف والساعات وأيضًا فحص التفكيك والسجلات. تستفيد أيضًا إصدارات Android التي تم تفعيل AGDE
منها تكامل Incredibuild في أداة Unreal Build Tool لتوفير
إصدارات موزّعة على أجهزة الكمبيوتر من أجل ترميز Android C++.
الشكل 2. لقطة شاشة لبرنامج AGDE مع Unreal Engine
النتائج
"نظرًا لبيئة التطوير التي تركز على Visual Studio، كنا متحمسين
جدًا لدمج AGDE في سير العمل لدينا. نحن نعتبر استخدامنا لـ AGDE ناجحًا لأنّ مهندسي Fortnite وUnreal Engine Mobile
يستخدمون AGDE يوميًا في أعمالهم". "سمحت AGDE لـ Epic بتصحيح الأخطاء بسرعة وسهولة أكبر،
وساعد البقاء داخل Visual Studio على إجراء تحسُّن كبير
في سير العمل السابق. لقد ساعدَنا استخدام AGDE بالتأكيد في توفير الكثير من الوقت لنا،
وساعدنا في العثور على أخطاء لم نكن لنعثر عليها".
قال بورتر: "نتوقع مواصلة استخدام AGDE في Epic، ونخطط لجعل
مستنداتنا تنصح بـ AGDE باعتبارها سير عمل مطوّري الألعاب في Unreal Engine Android
المتوافقة لجميع الحاصلين على ترخيص Unreal Engine."
يستخدم "دميترو فوفك"، وهو مطوّر فريق Unreal Engine Mobile، أداة AGDE
كجزء من عمله اليومي في Unreal Engine وFortnite Mobile، ويقول: "AGDE
رائع جدًا! أخيرًا يمكنني تصحيح أخطاء التجميع ومعرفة السجلات التي يتم
تحديثها أثناء تنقلي خلال التعليمات البرمجية. يساعدني تصحيح الأخطاء في Android من
خلال Visual Studio في تسهيل عملي اليومي ويجعلني أواصل
التدفق في التطوير."
البدء
تعرَّف على الطريقة التي تمكّنك
إضافة تطوير ألعاب Android
من استهداف Android عند إنشاء ألعاب تعمل على أنظمة أساسية مختلفة باستخدام لغة C/C++ في Visual Studio.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2021-07-12 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 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."]]