Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
使用 Unity 的 AR Foundation 搭配 Vulkan 轉譯 AR 應用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Unity 的 AR Foundation 支援 ARCore 的 Vulkan 算繪。請按照這份指南在 Unity 專案中啟用 Vulkan Graphics API。
安裝正確版本的 Unity 套件
您必須使用下列套件版本,才能使用 Vulkan 圖形 API 進行轉譯。在「Window」>「Package Manager」中,確認已安裝下列套件及其對應版本:
- AR Foundation 6.1.0-pre.2 以上版本
- Google ARCore XR 外掛程式 6.1.0-pre.2 以上版本
如要在 Unity 專案中啟用 Vulkan 圖形 API,請按照下列步驟操作:
- 依序前往「Edit」>「Project Settings」>「Other」>「Rendering」>「Graphics API」,新增「Vulkan」API 選項。
- Vulkan 算繪需要 Android API 級別 29 以上版本。在 Unity 中,依序前往「Edit」>「Project Settings」>「Other」>「Identification」>,將「Minimum API」設為 API 級別 29 以上。
- 如要將 Vulkan Graphics API 與通用轉譯管道搭配使用,請找出您目前使用的通用轉譯器資產。在專案素材資源中,使用搜尋篩選器
t:UniversalRenderPipelineAsset。在 Inspector 中,將 ARCommandBufferSupportRendererFeature 新增至 Renderer Features 清單。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-04-28 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2026-04-28 (世界標準時間)。"],[],[]]