แสดงผลแอป AR โดยใช้ Vulkan กับ AR Foundation ของ Unity
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รองรับการแสดงผล Vulkan ด้วย ARCore ใน AR Foundation ของ Unity ทำตามคำแนะนำนี้เพื่อเปิดใช้ Vulkan Graphics API ในโปรเจ็กต์ Unity
ติดตั้งแพ็กเกจ Unity เวอร์ชันที่ถูกต้อง
คุณต้องใช้แพ็กเกจเวอร์ชันต่อไปนี้เพื่อใช้ Vulkan Graphics API สำหรับการแสดงผล ในหน้าต่าง > เครื่องมือจัดการแพ็กเกจ ให้ตรวจสอบว่าได้ติดตั้งแพ็กเกจต่อไปนี้และเวอร์ชันที่เกี่ยวข้องแล้ว
- AR Foundation 6.1.0-pre.2 ขึ้นไป
- ปลั๊กอิน Google ARCore XR 6.1.0-pre.2 ขึ้นไป
หากต้องการเปิดใช้ Vulkan Graphics API ในโปรเจ็กต์ Unity ให้ทำตามขั้นตอนต่อไปนี้
- ในแก้ไข > การตั้งค่าโปรเจ็กต์ > อื่นๆ > การแสดงผล > Graphics API ให้เพิ่มตัวเลือก API ของ Vulkan
- การแสดงผล Vulkan ต้องใช้ Android API ระดับ 29 ขึ้นไป ใน Unity ให้ไปที่แก้ไข > การตั้งค่าโปรเจ็กต์ > อื่นๆ > การระบุตัวตน > ตั้งค่าAPI ขั้นต่ำเป็น API ระดับ 29 ขึ้นไป
- หากต้องการใช้ Vulkan Graphics API กับ Universal Render Pipeline ให้ค้นหาชิ้นงาน Universal Renderer ที่ใช้งานอยู่ ในชิ้นงานโปรเจ็กต์ ให้ใช้ตัวกรองการค้นหา
t:UniversalRenderPipelineAsset
ในเครื่องมือตรวจสอบ ให้เพิ่ม ARCommandBufferSupportRendererFeature
ลงในรายการฟีเจอร์โปรแกรมแสดงผล
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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."]]