Skip to content

Commit

Permalink
Add workaround
Browse files Browse the repository at this point in the history
Test workaround proposed here:
ValveSoftware/steamvr_unity_plugin#949
  • Loading branch information
Peaj committed Jul 16, 2021
1 parent e888ee6 commit 22566f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Assets/SteamVR/Scripts/SteamVR_Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ private static void LoadInstance()
if (_instance == null)
{
_instance = Resources.Load<SteamVR_Settings>("SteamVR_Settings");

#if UNITY_EDITOR
if (_instance == null)
{
_instance = UnityEditor.AssetDatabase.LoadAssetAtPath<SteamVR_Settings>("Assets/SteamVR_Resources/Resources/SteamVR_Settings.asset");
}
#endif
if (_instance == null)
{
_instance = SteamVR_Settings.CreateInstance<SteamVR_Settings>();
Expand Down

0 comments on commit 22566f5

Please sign in to comment.