D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms.

错误

在运行别人的Unity HDRP项目的时候会提示:

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms. Please change the preferred Graphics API setting in Player Settings.
UnityEditor.EditorApplication:Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange)

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第1张图片

解决方式

  1. 打开Window>Render Pipline>Render Pipeline Wizard
    D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第2张图片

  2. 检查HDRP和HDRP+VR和,HDRP+DXR中有没有错误,如果有就点击Fixed。
    D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第3张图片

  3. 再次运行,如果过还不行,

  4. 在Unity编辑器中,选择“Edit”菜单,然后选择“Project Settings”

  5. 在“Project Settings”窗口中,选择“Player”选项卡。
    D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第4张图片

  6. 在“Player Settings”面板中,展开“Other Settings”部分。

  7. 在“Other Settings”部分中,找到“Rendering”设置。

  8. 找到“Auto Graphics API for Windows” 勾选。
    D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第5张图片

  9. 然后再次运行,试试?

附件,项目的部分设置

Player

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第6张图片

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第7张图片

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第8张图片
D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第9张图片

XR Plug-in Managerment

D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第10张图片
D3D11 is currently the only graphics API compatible with the Oculus XR Plugin on desktop platforms._第11张图片

你可能感兴趣的:(Unity,unity)