> For the complete documentation index, see [llms.txt](https://docs.hology.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hology.app/zh-tw/user-interfaces/vr.md).

# VR

要在您的遊戲或 3D 體驗中啟用 VR，您只需使用 HologyScene 組件傳入 XR 設置。您需要的唯一設置是將 enabled 設置為 true。

```tsx
function App() {
  return (
    <HologyScene 
      gameClass={Game} 
      sceneName='main' 
      dataDir='data' 
      shaders={shaders} actors={actors} 
      xr={{enabled: true}}>
    </HologyScene>
  );
}
```
