ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.02k stars 255 forks source link

Teleportation area does not seems to behave as it should after using SceneManager.LoadScene #539

Open GithubP3M opened 4 years ago

GithubP3M commented 4 years ago

Hi there,

I have a script that allows me to reset a scene by clicking on a UI button in unity.

`public void Restart() { UnityEngine.SceneManagement.SceneManager.LoadScene("molworkshop");

        }`

In previous versions of SteamVR plugin, I could reset a scene and teleport without trouble.

Since the last version, when I reset, instead of being able to teleport, I get this : image

The teleport arc stays red eventhough intersection with the mesh collider from "Teleport Area" is detected.

As I have this issue since recent SteamVR plugin update, I don't know if it is a problem with SteamVR or if I missed something.

Thanks.

GithubP3M commented 4 years ago

Addendum, I reverted back to an older version of steamVR from my git, and the teleport function is now working again after loading scene. So there is definitely something strange going on there.

zite commented 4 years ago

Is your player prefab marked as do not destroy ([SteamVR] gameobject)? Was it before? May want to double check as I think something with that changed.

Are you getting errors in unity?