question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Actions in Teleport and Hand scripts are overridden

See original GitHub issue

Hey 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
zitecommented, Jan 3, 2019

This should be fixed in the 2.2b3 beta on the releases page: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2b3

0reactions
LexQzimcommented, Jan 9, 2019

Sorry about that, looks like there was an issue with deserialization in b3. I believe I’ve fixed it in b4 here: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2b4

Yes, with the new beta the problem doesn’t apear anymore. Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found