Skip to content

XRUserController

Ryan Goodrich edited this page Jul 31, 2018 · 1 revision

XRUserController

This represents a physical controller in the world. An XRUserController must have XRInteractor's placed on GameObjects which are children of it in order to define how the controller will interact with the world.

Example Hiearchy:

StandardUserController
├── UIInteractor
├── LaserInteractor
├── ProximityInteractor
└── TeleportInteractor

You may freely add, or remove, or change the XRInteractor components in order to produce XRUserController's which behave differently, or produce different visual.

The visual model for the controller is specified via the XRControllerModel. This allows you to reuse the same XRUserController setup with different controller models.

A XRUserController is loaded into a XRUserRootConfig alongside a XRControllerModel and a XRInputMap in order to define all aspects of how a controller functions, and looks, in a 3D environment.

Clone this wiki locally