Skip to content

Actions with defaults assigned can change unexpectedly #1026

Description

@ZnelArts

Why the assigned SteamVR actions are being changed by themselves when I load a prefab that has some interactables?
See this video:

steamvrissue

Observe how the actions just change, the loaded prefab has no logic to change them, it just has a bunch of interactables.

[EDIT] Doing some more testing it doesn't require to drag the prefab to the scene, the actions change by just selecting the prefab in the Project Tab.

I have been on Unity 2020.3.27 for some time but this started to happen recently so is not related to the Unity version.
The only thing that changed recently is the SteamVR client which was updated to 1.21.12 recently.

Additionally every time this happens in the editor the file Open VR Settings.asset gets modified but I didnt change anything on it.

Another note is that this happens right after I get the error
NullReferenceException: Object reference not set to an instance of an object
Valve.VR.SteamVR_Action`2[SourceMap,SourceElement].get_Item (Valve.VR.SteamVR_Input_Sources inputSource) (at Assets/Imported/SteamVR/Input/SteamVR_Action.cs:44)
It seems sourceMap is null for some reason.

This issue seems very similar to #616

Im using the SteamVR Unity Plugin - v2.7.3 (sdk 1.14.15)

Thanks for any help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions