controllerinputactionmanagerbase - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Rig
Inherits from UnityEngine.MonoBehaviour
Use this class to mediate the interactors for a controller under different interaction states and the input actions used by them.
public class ControllerInputActionManagerBase : MonoBehaviourIf the teleport ray input is engaged, the Ray Interactor used for distant manipulation is disabled
and the Ray Interactor used for teleportation is enabled. If the Ray Interactor is selecting and it
is configured to allow for attach transform manipulation, all locomotion input actions are disabled
(teleport ray, move, and turn controls) to prevent input collision with the manipulation inputs used
by the ray interactor.
A typical hierarchy also includes an XR Interaction Group component to mediate between interactors.
The interaction group ensures that the Direct and Ray Interactors cannot interact at the same time,
with the Direct Interactor taking priority over the Ray Interactor.
| Name | Description |
|---|---|
| _rayInteractorChanged | Event fired when the active ray interactor changes between interaction and teleport. |
| Name | Description |
|---|---|
| NearFarEnableTeleportDuringNearInteraction | With the Near-Far Interactor, if true, teleport will be enabled during near interaction. If false, teleport will be disabled during near interaction. |
| SmoothMotionEnabled | If true, continuous movement will be enabled. If false, teleport will be enabled. |
| SmoothTurnEnabled | If true, continuous turn will be enabled. If false, snap turn will be enabled. |
| Note: If smooth motion is enabled and enable strafe is enabled on the continuous move provider, turn will be overridden in favor of strafe. | |
| UiScrollingEnabled | If true, UI scrolling will be enabled. Locomotion will be disabled when pointing at UI to allow it to be scrolled. |