ValveSoftware / steamvr_unity_plugin

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

GetDigitalActionData, GetSkeletalActionData and GetPoseActionData errors and controller inactive on hybrid build (with VR and Non-VR scenes) #338

Closed asierras closed 5 years ago

asierras commented 5 years ago

I get this errors on my build but not in unity editor. My build is a hybrid with desktop scenes and VR scenes. The first time I get into the vr scene from the desktop scene it works perfectly but if I exit VR and reenter a second time from the desktop scene the controllers no longer appear and it launches these errors:

errores compilado onlateupdate

In Unity editor in the same case the controllers are always shown and can interact with them but it shows these errors instead: [SteamVR] GetOriginTrackedDeviceInfo error (/actions/default/in/Pose): InvalidHandle handle: 1153022814295425249 activeOrigin: 2305944318902272261 active: True UnityEngine.Debug:LogError(Object) [SteamVR] GetOriginTrackedDeviceInfo error (/actions/default/in/Pose): InvalidHandle handle: 1153022814295425249 activeOrigin: 2305944318902272343 active: True UnityEngine.Debug:LogError(Object)

It is an application with vive controllers and I am using SteamVR Unity Plugin 2.20 from the asset store and Unity 2018.3.5f1. Anyone else having these issues? I am quite worried since it is for a project with short time to develop it. Thank you in advance.

asierras commented 5 years ago

Ok, so my colleagues found the solution, basically instancing the camera rig prefab instead of having it preloaded in the scene made the trick.