עיבוד (רנדר) של אפליקציית AR באמצעות Vulkan עם AR Foundation של Unity
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יש תמיכה ב-Vulkan Rendering עם ARCore ב-AR Foundation של Unity. במדריך הזה מוסבר איך מפעילים את Vulkan Graphics API בפרויקט ב-Unity.
התקנת הגרסה הנכונה של חבילות Unity
כדי להשתמש ב-Vulkan Graphics API לצורך רינדור, נדרשות גרסאות החבילות הבאות. בקטע Window > Package Manager, מוודאים שהחבילות הבאות והגרסאות התואמות שלהן מותקנות:
- AR Foundation 6.1.0-pre.2 ואילך
- Google ARCore XR Plugin 6.1.0-pre.2 ואילך
כדי להפעיל את Vulkan Graphics API בפרויקט ב-Unity, פועלים לפי השלבים הבאים:
- בקטע Edit (עריכה) > Project Settings (הגדרות הפרויקט) > Other (אחר) > Rendering (עיבוד) > Graphics API (ממשק API גרפי), מוסיפים את האפשרות Vulkan API.
- כדי להשתמש ב-Vulkan Rendering, נדרשת רמת API 29 ואילך ב-Android. ב-Unity, עוברים אל Edit (עריכה) > Project Settings (הגדרות הפרויקט) > Other (אחר) > Identification (זיהוי) >, מגדירים את Minimum API (גרסת API מינימלית) ל-API ברמה 29 ואילך.
- כדי להשתמש ב-Vulkan Graphics API עם Universal Render Pipeline, מאתרים את נכס Universal Renderer הפעיל. בנכסי הפרויקט, משתמשים במסנן החיפוש
t:UniversalRenderPipelineAsset
. ב-Inspector, מוסיפים את הערך ARCommandBufferSupportRendererFeature
לרשימת תכונות ה-Renderer.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-14 (שעון UTC)."],[],[],null,["# Render your AR app using Vulkan with Unity's AR Foundation\n\nVulkan Rendering is supported with ARCore on Unity's AR Foundation. Follow this\nguide to enable the Vulkan Graphics API in your Unity project.\n\nInstall the correct version of Unity packages\n---------------------------------------------\n\nThe following package versions are required to use the Vulkan Graphics API for\nrendering. In **Window \\\u003e Package Manager**, ensure that the following\npackages and their corresponding versions are installed:\n\n1. [AR Foundation](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@6.1/manual) **6.1.0-pre.2 or later**\n2. [Google ARCore XR Plugin](https://docs.unity3d.com/Packages/com.unity.xr.arcore@6.1/manual) **6.1.0-pre.2 or later**\n\nConfigure your project\n----------------------\n\nTo enable the Vulkan Graphics API in your Unity Project, follow these steps:\n\n1. In **Edit \\\u003e Project Settings \\\u003e Other \\\u003e Rendering \\\u003e Graphics API** , add the **Vulkan** API option.\n2. Vulkan Rendering requires Android API Level 29 or higher. In Unity, go to **Edit \\\u003e Project Settings \\\u003e Other \\\u003e Identification \\\u003e** , set the **Minimum API** to API level 29 or higher.\n3. To use the Vulkan Graphics API with the Universal Render Pipeline, locate your active Universal Renderer asset. In your Project assets, use the search filter `t:UniversalRenderPipelineAsset`. In its Inspector, add an `ARCommandBufferSupportRendererFeature` to the list of Renderer Features."]]