Skip to content

Commit

Permalink
removed the editor create steamvr_settings as basis has one already
Browse files Browse the repository at this point in the history
our steamvr integration is very torn to shreds compared to the normal steamvr .unitypackage

this is mostly to reduced overhead
  • Loading branch information
dooly123 committed Feb 13, 2025
1 parent fc1ee7a commit 8df0497
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//======= Copyright (c) Valve Corporation, All rights reserved. ===============

using UnityEngine;
using UnityEngine.Serialization;
Expand Down Expand Up @@ -78,14 +78,15 @@ private static void LoadInstance()
if (_instance == null)
{
_instance = SteamVR_Settings.CreateInstance<SteamVR_Settings>();

/* disabled this
#if UNITY_EDITOR
string localFolderPath = SteamVR.GetSteamVRResourcesFolderPath(true);
string assetPath = System.IO.Path.Combine(localFolderPath, "SteamVR_Settings.asset");
UnityEditor.AssetDatabase.CreateAsset(_instance, assetPath);
UnityEditor.AssetDatabase.SaveAssets();
#endif
*/
}

SetDefaultsIfNeeded();
Expand Down Expand Up @@ -152,4 +153,4 @@ private static GameObject FindDefaultPreviewHand(string assetName)

}
}
}
}

0 comments on commit 8df0497

Please sign in to comment.