
10 | A Detailed Look at the Unity Integration | Unity
A Detailed Look at the Unity Integration
This section examines the Unity integration, including the directory structure of the integration, the Unity prefabs
are described, and several key C# scripts.
Note: There are minor differences between the contents of the Unity Integration provided for PC
development and the version bundled with the mobile SDK.
Contents
OVR
The contents of the OVR folder in OculusUnityIntegration.unitypackage are uniquely named and should be safe
to import into an existing project.
The OVR directory contains the following subdirectories:
Editor Contains scripts that add functionality to the Unity Editor, and enhance several C#
component scripts.
Materials Contains materials that are used for graphical components within the integration, such
as the main GUI display.
Moonlight Contains classes specific to mobile Gear VR development. (mobile only)
Prefabs Contains the main Unity prefabs that are used to provide the VR support for a Unity
scene: OVRCameraRig and OVRPlayerController.
Resources Contains prefabs and other objects that are required and instantiated by some OVR
scripts, such as the main GUI.
Scenes Contains sample scenes.
Scripts Contains the C# files that are used to tie the VR framework and Unity components
together. Many of these scripts work together within the various Prefabs.
Shaders Contains various Cg shaders required by some of the OVR components.
Textures Contains image assets that are required by some of the script components.
Note: We strongly recommend that developers not directly modify the included OVR scripts.
Plugins
The Plugins folder contains the OculusPlugin.dll, which enables the VR framework to communicate with Unity on
Windows (both 32 and 64-bit versions).
Comentarios a estos manuales