Skip to content
Simon edited this page Sep 10, 2020 · 4 revisions

Namespace: WIDVE.Oculus
Location: WIDVE Unity Scripts/Oculus

The Oculus scripts are designed for use with Oculus virtual reality devices.

Usage

The Oculus scripts require the Oculus integration package to be installed. As not every project will be using this package, they additionally require a define flag to be set before the scripts will be recognized by Unity. The flag WIDVE_OCULUS must be included in Project Settings/Player/Other Settings/Scripting Define Symbols. This will need to be set individually for each platform targeted by the project.

Avatar Materials

The CustomAvatarMaterials script is used to override the default materials used by Oculus for Oculus Touch hands and controllers. As the hand and controller models are only generated at runtime, this script is necessary to edit them after they have been created. A set of default replacement materials is included.

Oculus Buttons

Scripts are included so that Oculus Touch inputs can be used as Buttons. An additional script is added to generate Oculus buttons automatically, found in the same submenu as the other button generation scripts.

Clone this wiki locally