In our VR game I am trying to instruct the user on how to teleport, grab objects etc using the built in controller hints in SteamVR 2.0. There is a script called ControllerHintsExample.cs in the SteamVR package for Unity, however the only example it gives is how to cycle through all hints, not how to trigger a specific hint.
After searching the sparse documentation and other posts on the matter, this is what I have so far:
[SteamVR_DefaultAction("Teleport")]
public SteamVR_Action_Boolean teleportAction;
…
public void ShowTriggerHint()
{
ControllerButtonHints.ShowButtonHint(this, teleportAction); //todo: assess
}
However this isn’t working and I’ve reached a dead end. As I understand it, if I can trigger this correctly then the button that activates teleport will flash on the controller in VR. Any help on how to achieve this will be very much appreciated.