Skip to content

Commit a019b51

Browse files
Final Fix
1 parent 1b95d85 commit a019b51

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Editor/AutoSaver.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,11 @@ private static void Init()
3636
}
3737
else
3838
{
39-
var assetsFolder = GetAssetsFolderPath();
40-
Debug.Log(assetsFolder);
4139
_settings = ScriptableObject.CreateInstance<AutoSaveSettings>();
4240
AssetDatabase.CreateAsset(_settings, "Assets/AutoSaveSettings.asset");
4341
AssetDatabase.SaveAssets();
4442
}
4543
}
46-
47-
private static string GetAssetsFolderPath()
48-
{
49-
string arbitraryPath = AssetDatabase.GUIDToAssetPath("0000000000000000");
50-
int assetsIndex = arbitraryPath.IndexOf("Assets");
51-
if (assetsIndex != -1)
52-
{
53-
return arbitraryPath.Substring(0, assetsIndex + 6);
54-
}
55-
else
56-
{
57-
Debug.LogError("Could not find Assets folder.");
58-
return "";
59-
}
60-
return "";
61-
}
6244

6345

6446
private static void Update()

0 commit comments

Comments
 (0)