Skip to content

Interactions & Controls

Ad edited this page Jul 20, 2022 · 4 revisions

Brief Overview

There are several parts to how the interactions work. There is a combination of Unity's XR Interactions package and our custom implementation. Custom implementation scripts will have the Oca* prefix.

The important parts are XRRayInteractor (Unity's XR Interactions package) and the OcaRayInteractor.

The former handles UI interactions and the latter deals with physical interactions.

Making a GameObject interactable

The OcaRayInteractor script will pickup any GameObject that has the Interactable tag attached to it.

See Controller HUD if you need your GameObject to expose in-game editable parameters.

Clone this wiki locally