在此專頁上
Oculus Utilities for Unity is an optional Unity Package that includes scripts, prefabs and other resources to assist with development.
To import Oculus Integration for Unity into your project, perform the following steps:
If you have previously imported another version of the Integration or Utilities package into your project, delete the following Oculus content from your Unity project folder before importing a new version:
Note: Be sure to close the Unity Editor before proceeding.
| Folder | Content to Delete |
|---|---|
| Assets/Plugins | Oculus.OVR. |
| Assets/Plugins/Android/ | OculusAndroidManifest.xmlvrapivrlibvrplatlib |
| Assets/Plugins/x86/ | Oculus.OVR. |
| Assets/Plugins/x86_64/ | Oculus.OVR. |
If you’re already working in a Unity project, save your work before importing. Otherwise, create a new project:
The latest Oculus Integration for Unity is available in the Unity Asset Store. Download the package from the Oculus Integration page, or by searching for Oculus Unity Integration in the Asset Store tab of the Unity Editor.
When the Importing package dialog opens, leave all of the boxes checked and select Import.
The Oculus OVRPlugin provides built-in Editor support and some additional features. The latest version is included in the Utilities for Unity package, and if it is later than the detected version in the Editor, you’re given the option to automatically update your project. We always recommend using the latest version.