Skip to content

Rig Configurator

eisclimber edited this page Feb 11, 2024 · 2 revisions

Rig Configurator

static class in ExPresSXR.Rig / Extends MonoBehavior

Description

Acts as a central location from which the player can teleport to other locations. This is especially useful if the other locations are far away or there is no line of sight, as regular teleports would not be possible in this case.

It provides functionality to hide/show certain objects when teleporting or the player is not present.
You will usually want to add a PlayerDetector control SetPlayerPresent() with its Events. Otherwise the visibility of _playerPresentVisibleand its children will not be affected.

The default prefab also allows teleportation at the MapPoint itself, indicated by the white are on the floor.

Members

Static Methods

  • void ApplyConfigData(ConfigData configData): Applies both the interaction options and the movement preset to the rig.
  • void ApplyInteractionsOptions(ConfigData configData): Applies only the interaction options to the rig.
  • void ApplyMovementPreset(ConfigData configData): Applies only the movement preset to the rig.

Enums

  • InputMethodType: Used to reference the input method type. Either None, Controllers, Head Gaze or Eye Gaze.
  • MovementPreset: Used to reflect common movement types.
  • InteractionOptions: Flags for turning controller-interactions on or off.
  • GameTabDisplayMode: Can be used to change the rendering of the editors Game-View during Play-Mode.

Helper Classes

  • ConfigData: Data providing all necessary references and the required data how the rig should be configured. Can either be created either by providing the config options (InputMethod, MovementPreset, InteractionOptions) and a rig or the references to the rigs references.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally