开发

Unreal Engine 中的 Meta XR 性能设置

更新时间: 2026年4月17日
Meta XR 项目设置工具提供了一种简化的方式,方便您为 Meta Quest 项目应用推荐的性能设置。当您应用某个设置时,该设置会立即写入您的项目配置。有些设置要求重启编辑器;如果遇到这种情况,工具会提示您。您选择 Ignore(忽略)时,系统会确认该设置,而不修改任何项目配置。忽略的规则会按用户存储,并且可以恢复。
注意:此工具旨在简化性能设置调整。若需要更全面地管理项目设置,建议使用标准的“项目设置”屏幕。

前提条件

在使用 Meta XR 项目设置工具前启用 Meta XR 插件。
如要启用 Meta XR 插件:
  1. Edit(编辑)菜单中,点击 Plugins(插件)。
  2. ALL PLUGINS(所有插件)窗口的 INSTALLED(已安装)下,打开 Virtual Reality(虚拟现实)版块。
  3. 选择 Meta XR 插件的 Enable(启用)复选框。
  4. 重启 Unreal Engine。
注意:必须为每个项目单独启用 Meta XR 插件。
如果未显示 Meta XR 插件,请在 Unreal Engine 中单独安装它。要执行此操作,请参阅安装 Meta XR 插件

启动 Meta XR 项目设置工具

  1. Edit(编辑)菜单中,点击 Project Settings(项目设置)。
  2. Plugins(插件)下,选择 Meta XR
  3. 点击 Launch Meta XR Project Setup Tool(启动 Meta XR 项目设置工具)。
    Launch Meta XR Project Setup Tool

修改性能设置

打开 Meta XR Project Setup Tool 时,使用平台筛选条件下拉菜单来选择您的目标平台。可用选项如下:
  • All Meta Quest(所有 Meta Quest)(默认):集中显示 Quest 2、Quest 3 和 Quest Pro 的设置。
  • MetaLink:显示 Meta Quest Link 和 Air Link 所连接 PC 会话的设置。
  • Quest 3:显示 Quest 3 特定设置。
  • Quest Pro:显示 Quest Pro 特定设置。
  • Quest 2:显示 Quest 2 特定设置。
Platform filter dropdown
The following options are displayed for PC-VR apps:
PC-VR app options
SettingWhat it does
Enable Instanced Stereo
Reduces draw calls using multi-view rendering. Requires an editor restart.
Enable PC Forward Shading
Enables forward shading for PC targets. Requires an editor restart.
The following options are displayed for Meta Quest apps:
Meta Quest app options
SettingWhat it does
Use Vulkan Rendering Backend
Sets Vulkan as the rendering backend.
Use Half Precision Float
Enables half-precision floating point. Requires an editor restart.
Enable MSAA
Enables 4x MSAA antialiasing.
Enable Occlusion Culling
Enables hardware occlusion culling.
Enable Dynamic Foveation
Enables dynamic foveated rendering.
Disable Post Processing
Disables mobile post-processing, including Mobile HDR. Requires an editor restart.
Enable Mobile Multi-View
Enables mobile multi-view stereo rendering. Requires an editor restart.
Disable Lens Flare
Disables lens flare post-processing.
Enable Static Lighting
Enables static lighting. Requires an editor restart.
Enable Forward Shading
Enables forward shading for Quest 2. Requires an editor restart.
Disable Ambient Occlusion
Disables mobile ambient occlusion. Available in UE 5.6 and earlier. Requires an editor restart.