Custom Actions in Teleport and Hand scripts are overridden
See original GitHub issueHey folks,
I just encountered a bug with custom Actions in the Teleport and Hand scripts. You can define a custom Action in the inspector but it is automatically overridden by the default action when entering play mode. This is strange as the inspector still shows the custom action but when debugging Teleport.WasTeleportButtonPressed revealed that the default action /actions/default/in/Teleport is used. It can be resolved by changing line 16:
public SteamVR_Action_Boolean teleportAction = SteamVR_Input.GetAction<SteamVR_Action_Boolean>("Teleport");
To:
public SteamVR_Action_Boolean teleportAction;
The same applies to the actions in the Hand script.
Were using 2.1.5 and Unity 2018.2.7f1
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How can i change the default action for teleporting?
I can teleport by default using the hand trigger in the side of the oculus quest controller but i want to change it...
Read more >Scenario Actions - Metaverse Academy
The detailed guide on actions available within the platform. Actions described here apply to Scenario version 2.5 or above. If the action is...
Read more >Locomotion | XR Interaction Toolkit | 1.0.0-pre.8
This ensures that the user can't do another action, such as snap turning or teleporting again, while the current action is active.
Read more >Unreal engine teleport player command. I have a custom Trigger
I created a Blueprint subclass of TriggerBox and added this script to it: When the player (a DefaultPawn) touches the box, I would...
Read more >How to animate Tool Parts (Guns, Knifes etc.)
Hello everyone! I am Headstackk. I have developed a Weapon Framework used in my game Weaponry. In this post, I will explain how...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be fixed in the 2.2b3 beta on the releases page: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2b3
Yes, with the new beta the problem doesn’t apear anymore. Thanks