SteamVR Interaction system. Small problem with Teleport points.
Hello people, I have set up a scene for a presentation and copied a couple of teleport points from the ''Interactions_Example'' scene inside the SteamVR -> Interaction System->Samples->Scenes.
It was working fine until i tried to Build and Run and it seemed to broke something in the Teleportation system.
Everytime i click the button to teleport the Console gives me this :
NullReferenceException: Object reference not set to an instance of an object Valve.VR.InteractionSystem.TeleportPoint.Highlight (Boolean highlight) (at Assets/SteamVR/InteractionSystem/Teleport/Scripts/TeleportPoint.cs:140) Valve.VR.InteractionSystem.Teleport.ShowPointer (Valve.VR.InteractionSystem.Hand newPointerHand, Valve.VR.InteractionSystem.Hand oldPointerHand) (at Assets/SteamVR/InteractionSystem/Teleport/Scripts/Teleport.cs:691) Valve.VR.InteractionSystem.Teleport.Update () (at Assets/SteamVR/InteractionSystem/Teleport/Scripts/Teleport.cs:266)
Any ideas?
Thanks in advance!
PS. I am not a programmerbut i will do my best to understand. :)
Hey guys, i solved it and now it works fine.
Surprisingly because i had a locked teleport point in the same location with an unlocked one in order to switch their states with a trigger the VR hand teleport beam was glitching. Now it works but i cannot tell exactly the reason it was doing that. Thank you anyway! :)
Answer by BlackRainbowFT · Jul 17, 2017 at 10:07 AM
Hey,
Did you import both "Player" and "Teleporting" prefabs into your scene?
That did the trick for me. Didnt have Teleporting prefab. Also ins$$anonymous$$d of Player had CameraRig prefab. Thanks
Answer by VHornet · Jul 20, 2017 at 01:56 AM
Another issue I had with the Points prefab, was the Canvas Text. It keeps deleting the txt. Any thoughts?
Answer by pinate · Jun 12, 2018 at 06:51 AM
As well, menu in wordspace works find on editor player (selectable) but doesn't work on "exe" runtime.
error on editor console: NullReferenceException: Object reference not set to an instance of an object Valve.VR.InteractionSystem.Teleport.HidePointer () (at Assets/SteamVR/InteractionSystem/Teleport/Scripts/Teleport.cs:646) Valve.VR.InteractionSystem.Teleport.OnDisable () (at Assets/SteamVR/InteractionSystem/Teleport/Scripts/Teleport.cs:201)
Tons of confusing!
Did either of you ever solve this error? I have multiple scenes with Player and Teleporting Prefabs. When I load into a new scene, I always get this error. For me, the the teleportMarkers array is the null reference. It appears as though Teleporting's OnDisable gets called once in the previous scene and once again on startup of new scene. Very bizarre.
Your answer
Follow this Question
Related Questions
Steam VR Teleport Reticle Off Set? 0 Answers
VR Teleporting on any object 0 Answers
SteamVR Teleport onto moving object 1 Answer
SteamVR Teleport causes Terrain to Disappear 0 Answers
How to make a laser pointer with WebXR 0 Answers