SteamVR

SteamVR

DocScott May 7, 2019 @ 8:55am
SteamVR + Unity scene switching hand corruption error? (w/ Video example)
Hi community! I'm developing a game in Unity using the SteamVR plug-in for the gesture support and teleportation mechanics. Everything has been working well until I ran into the following problem. Please help me troubleshoot.

Problem: When switching scenes (in Unity play mode or in the built game), the left controller hand becomes deformed and teleportation mechanics are lost on both hands. In the included video at the start, the hands look fine and teleportation via thumbstick depression works on both hands. Then after the player changes scenes partway through the video, the left hand become deformed and the teleportation mechanics are lost. Video link: https://youtu.be/vYyg_btLhpE

Other important details:
-The problem does not occur in each of the two scenes individually. I only come across the error after switching scenes.
-SteamVR assets exist as needed in both scenes including the player assets and teleportation assets for each scene to be fully functional individually.
-The are two yellow flag Unity errors (can be seen in lower left of Unity screen on video) but I don't think these are causing this problem as they are also present when the problem is not occurring.
-Versions: Unity 2018.3.9f1. SteamVR 2.2.0
-Hardware: Gigabyte P57 laptop. Oculus Rift with touch controllers and 2 outside-in IR sensors.

Thanks!
Scott
Last edited by DocScott; May 7, 2019 @ 12:43pm
Originally posted by Lucatus:
Hi! I had the same issue and was able to fix it.

The SteamVR asset automatically sets itself to DoNotDestroyOnLoad, so after a scene change you have a duplicate set of your Player which probably causes all these issues. Luckily you can simply disable that.

In the hierarchy i just had to go to the Player>SteamVRObjects>[SteamVR]. In the inspector you can remove the tick under Steam VR_Behaviour (Script)>Do Not Destroy now you can work with a new PlayerController in every scene (you will have to disable that in every Scene where you have the SteamVR PlayerPrefab)

I hope i could help a few People with this answer!

< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
Lucatus Feb 12, 2020 @ 12:37am 
Hi! I had the same issue and was able to fix it.

The SteamVR asset automatically sets itself to DoNotDestroyOnLoad, so after a scene change you have a duplicate set of your Player which probably causes all these issues. Luckily you can simply disable that.

In the hierarchy i just had to go to the Player>SteamVRObjects>[SteamVR]. In the inspector you can remove the tick under Steam VR_Behaviour (Script)>Do Not Destroy now you can work with a new PlayerController in every scene (you will have to disable that in every Scene where you have the SteamVR PlayerPrefab)

I hope i could help a few People with this answer!

DocScott Feb 29, 2020 @ 3:12am 
This was it! Thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: May 7, 2019 @ 8:55am
Posts: 2