We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b95d85 commit a019b51Copy full SHA for a019b51
1 file changed
Editor/AutoSaver.cs
@@ -36,29 +36,11 @@ private static void Init()
36
}
37
else
38
{
39
- var assetsFolder = GetAssetsFolderPath();
40
- Debug.Log(assetsFolder);
41
_settings = ScriptableObject.CreateInstance<AutoSaveSettings>();
42
AssetDatabase.CreateAsset(_settings, "Assets/AutoSaveSettings.asset");
43
AssetDatabase.SaveAssets();
44
45
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
61
62
63
64
private static void Update()
0 commit comments