Unity的OSP内容可在Unity分发包OculusSpatializer.unitypackage里找到。这个包包含了安装OculusSpatializer到你的Unity项目需要的所有组件。
Unity OSP contents are found in the Unity distribution package OculusSpatializer.unitypackage. This package contains all of the components required to install the OculusSpatializer into your Unity project.
将这个包导入Unity:
To import the package into Unity:
- 打开一个你想安装这个插件的项目,或者新建一个项目。
- 从你的操作系统中点击OculusSpatializer.unitypackage文件,安装所有文件到项目中。
- Open the project in which you would like to install the plugin, or create a new one.
- Click on OculusSpatializer.unitypackage file from your operating system to install all files into the project.
注意:OculusSpatializer.unitypackage包含了一个叫做OSPTest的测试场景,采用Unity标准资产第一人称控制器(FirstPersonController)。如果你将这个包安装到一个已经包含了这个资产的项目,你将会出现资源冲突。为了避免这种冲突,除了OSPTestScene目录外,其余内容都从unitypackage进行安装。
Note: OculusSpatializer.unitypackage contains a test scene called OSPTest, which uses the Unity standard asset FirstPersonController. If you install the package into a project which already includes this asset, you will have a resource conflict. To avoid this conflict, install everything from the unitypackage except for the OSPTestScene directory.
一旦安装好后,你将会在你的项目中看到以下的文件夹:
Once installed, you will see the following folders in your project:
- OSP
- OSPTestScene
- Plugins:包括多个平台的OculusSpatializerPlugins。