Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit e063bf2

Browse files
committed
fix: sodatabase.init fix
1 parent 1b429f8 commit e063bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.nuclearband.sodatabase/Runtime/SODatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static async Task Init(Action<float> onProgress, Action onComplete)
3131
#pragma warning restore 4014
3232
var resourceLocations = await loadHandler.Task;
3333

34-
var loadTasks = resourceLocations.ToDictionary(resourceLocation => resourceLocation.PrimaryKey.Substring(SODatabaseSettings.Label.Length + 1), resourceLocation => Addressables.LoadAssetAsync<DataNode>(resourceLocation).Task);
34+
var loadTasks = resourceLocations.ToDictionary(resourceLocation => resourceLocation.PrimaryKey.Substring(SODatabaseSettings.Path.Length + 1), resourceLocation => Addressables.LoadAssetAsync<DataNode>(resourceLocation).Task);
3535
await Task.WhenAll(loadTasks.Values);
3636
root = new FolderHolder();
3737
foreach (var loadTask in loadTasks)

0 commit comments

Comments
 (0)