Controller tooltips - vr4vet/Blue-Sector GitHub Wiki

The controller tooltips feature makes the player's hands turn into Quest hand controllers when within grabbing distance of a configured object. The buttons that are used to interact with the object are then labelled with the corresponding action. Each hand's vicinity is scanned for such objects several times a second, and the closest object determines which buttons and actions to label. This feature is toggled from the Main Menu's controller tooltip toggle

Settings

  • Always label teleport: Toggles whether the left hand controller's stick will be labelled as "teleport" when not intersecting with objects. See Main Menu accessibility page.

How to set up

First place the prefab ControllerToolTipManager into the scene, then drag the scene's Main Menu instance into the Main Menu field:

To make tooltips appear, add the script ControllerTooltipActivator.cs as a component of the object, and map an action to the desired buttons:

To make an object hide an intersecting hand's tooltips, give it the tag "ControllerTooltipDeactivator":