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

Commit 9129d46

Browse files
committed
fix: fix build
1 parent 2d6fc10 commit 9129d46

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

Packages/com.nuclearband.sodatabase/Runtime/Holders/FolderHolder.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ public class FolderHolder : Holder
1313

1414
[HideInInspector]
1515
public Dictionary<string, FolderHolder> FolderHolders = new Dictionary<string, FolderHolder>();
16+
17+
public FolderHolder() : base()
18+
{
1619

20+
}
21+
22+
#if UNITY_EDITOR
1723
public FolderHolder(string path, string name) : base(path, name)
1824
{
1925
}
20-
#if UNITY_EDITOR
26+
2127
protected override void Move()
2228
{
2329
AssetDatabase.MoveAsset(SODatabaseSettings.Path + Path + "/" + Name, SODatabaseSettings.Path + tempPath + "/" + Name);

Packages/com.nuclearband.sodatabase/Runtime/Holders/Holder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ namespace NuclearBand
55
{
66
public abstract class Holder
77
{
8+
public Holder()
9+
{
10+
11+
}
812
#if UNITY_EDITOR
913
[HideInInspector]
1014
public string Path;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static async Task Init(Action<float> onProgress, Action onComplete)
3232

3333
var loadTasks = resourceLocations.ToDictionary(resourceLocation => resourceLocation.PrimaryKey.Substring(SODatabaseSettings.Label.Length + 1), resourceLocation => Addressables.LoadAssetAsync<DataNode>(resourceLocation).Task);
3434
await Task.WhenAll(loadTasks.Values);
35-
root = new FolderHolder("", "");
35+
root = new FolderHolder();
3636
foreach (var loadTask in loadTasks)
3737
{
3838
//SODatabase/Example1Folder/Example1.asset
@@ -41,7 +41,7 @@ public static async Task Init(Action<float> onProgress, Action onComplete)
4141
for (var i = 0; i < pathElements.Length - 1; i++)
4242
{
4343
if (!curFolder.FolderHolders.ContainsKey(pathElements[i]))
44-
curFolder.FolderHolders.Add(pathElements[i], new FolderHolder("", ""));
44+
curFolder.FolderHolders.Add(pathElements[i], new FolderHolder());
4545

4646
curFolder = curFolder.FolderHolders[pathElements[i]];
4747
}

Packages/com.nuclearband.sodatabase/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.nuclearband.sodatabase",
33
"displayName": "Scriptable Objest database",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"dependencies": {
66
"com.unity.addressables": "1.7.5"
77
},
@@ -13,7 +13,7 @@
1313
"tools",
1414
"utilities",
1515
"library",
16-
"windowsmanager",
16+
"scriptable object",
1717
"nuclearband"
1818
],
1919
"repository": "https://github.com/Tr0sT/UnityScriptableObjectDatabase.git#upm",

0 commit comments

Comments
 (0)