-
Notifications
You must be signed in to change notification settings - Fork 1
Oculus
Namespace: WIDVE.Oculus
Location: WIDVE Unity Scripts/Oculus
The Oculus scripts are designed for use with Oculus virtual reality devices.
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.
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.
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.