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 255 forks source link

Inputs no longer work after the newest steamvr update(on steam) #836

Open Davidjans opened 3 years ago

Davidjans commented 3 years ago

Action sets no longer seem to be loaded after the SteamVR update this morning.

Giantbean commented 3 years ago
I am having this same issue. Updated to Steam VR v2.6.1 (sdk1.13.10) in Unity 2019.4.3f1 and then I click save and generate bindings I get the following errors

``` [SteamVR] Error during OpenVR Init: Init_InterfaceNotFound UnityEngine.Debug:LogError(Object) Valve.VR.SteamVR:InitializeTemporarySession(Boolean) (at Assets/SteamVR/Scripts/SteamVR.cs:330) Valve.VR.SteamVR:ShowBindingsForEditor() (at Assets/SteamVR/Scripts/SteamVR.cs:364) Valve.VR.SteamVR_Input_EditorWindow:OpenControllerBindings() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522) Valve.VR.SteamVR_Input_EditorWindow:DrawSave() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507) Valve.VR.SteamVR_Input_EditorWindow:OnGUI() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) ``` and ``` NullReferenceException: Object reference not set to an instance of an object Valve.VR.SteamVR.ShowBindingsForEditor () (at Assets/SteamVR/Scripts/SteamVR.cs:368) Valve.VR.SteamVR_Input_EditorWindow.OpenControllerBindings () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522) Valve.VR.SteamVR_Input_EditorWindow.DrawSave () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507) Valve.VR.SteamVR_Input_EditorWindow.OnGUI () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at :0) UnityEditor.HostView.Invoke (System.String methodName) (at :0) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at :0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at :0) UnityEditor.DockArea.OldOnGUI () (at :0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.OpenGate () (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <78b213560771414e9fa6f1b95f5ad8bb>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <819de1aa368e45faa4f78e26c97c62b0>:0) ```

On play The player is not moved to the DoNotDestroyOnLoad section in the Hierarchy and the SteamVRObjects is not active. The controllers do not load as they have no binding. Note The headset is plugged in and player settings' is set to OpenVR. I removed all steam folders and reimported, clicked save and generate but when launching the SteamVRObjects are still inactive. The player is still not set as DONOtDestroyOnLoad as I am familiar with from past versions. Manually activating gives new errors:

``` NullReferenceException: Object reference not set to an instance of an object Valve.VR.SteamVR_Action_Vibration_Source.Execute (System.Single secondsFromNow, System.Single durationSeconds, System.Single frequency, System.Single amplitude) (at Assets/SteamVR/Input/SteamVR_Action_Vibration.cs:202) Valve.VR.SteamVR_Action_Vibration.Execute (System.Single secondsFromNow, System.Single durationSeconds, System.Single frequency, System.Single amplitude, Valve.VR.SteamVR_Input_Sources inputSource) (at Assets/SteamVR/Input/SteamVR_Action_Vibration.cs:49) Valve.VR.InteractionSystem.Hand.TriggerHapticPulse (System.Single duration, System.Single frequency, System.Single amplitude) (at Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs:1433) Valve.VR.InteractionSystem.HandCollider.OnCollisionEnter (UnityEngine.Collision collision) (at Assets/SteamVR/InteractionSystem/Core/Scripts/HandCollider.cs:279) ``` and ``` NullReferenceException: Object reference not set to an instance of an object Valve.VR.SteamVR_Action_Vibration_Source.Execute (System.Single secondsFromNow, System.Single durationSeconds, System.Single frequency, System.Single amplitude) (at Assets/SteamVR/Input/SteamVR_Action_Vibration.cs:202) Valve.VR.SteamVR_Action_Vibration.Execute (System.Single secondsFromNow, System.Single durationSeconds, System.Single frequency, System.Single amplitude, Valve.VR.SteamVR_Input_Sources inputSource) (at Assets/SteamVR/Input/SteamVR_Action_Vibration.cs:49) Valve.VR.InteractionSystem.Hand.TriggerHapticPulse (System.Single duration, System.Single frequency, System.Single amplitude) (at Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs:1433) Valve.VR.InteractionSystem.HandCollider.OnCollisionEnter (UnityEngine.Collision collision) (at Assets/SteamVR/InteractionSystem/Core/Scripts/HandCollider.cs:279) ```

Also note that I do not have another camera in the scene and it dose not mater if the controllers are turned on or off when the scene is launched.