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

Commit 2632885

Browse files
committed
feat: remove nodes confirmation
1 parent 2680a38 commit 2632885

File tree

8 files changed

+230
-59
lines changed

8 files changed

+230
-59
lines changed

Assets/com.nuclearband.sodatabase/Runtime/Holders/DataNodeHolder.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace NuclearBand
77
{
88
public class DataNodeHolder : Holder
99
{
10-
[InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)]
10+
[InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)]
1111
public DataNode DataNode;
1212

1313
public DataNodeHolder(string path, string name, DataNode dataNode) : base(path, name)
@@ -39,13 +39,17 @@ protected override void Clone()
3939
AssetDatabase.GenerateUniqueAssetPath(SODatabaseSettings.Path + Path + "/" + Name + ".asset"));
4040
AssetDatabase.SaveAssets();
4141
}
42-
42+
4343
protected override void Remove()
4444
{
45+
if (!EditorUtility.DisplayDialog("Remove node",
46+
"Are you sure you want to remove DataNode?", "Yes, remove", "No"))
47+
return;
48+
4549
AssetDatabase.Refresh();
4650
AssetDatabase.DeleteAsset(SODatabaseSettings.Path + Path + "/" + Name + ".asset");
4751
AssetDatabase.SaveAssets();
4852
}
4953
}
5054
}
51-
#endif
55+
#endif

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ protected override void Clone()
5050

5151
protected override void Remove()
5252
{
53+
if (!EditorUtility.DisplayDialog("Remove folder",
54+
"Are you sure you want to remove folder with DataNodes?", "Yes, remove", "No"))
55+
return;
5356
SODatabaseInternal.RemoveFolder(Path + "/" + Name);
5457
}
5558
#endif

Packages/manifest.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"dependencies": {
3-
"com.unity.addressables": "1.16.19",
4-
"com.unity.ide.rider": "3.0.6",
5-
"com.unity.ide.visualstudio": "2.0.7",
6-
"com.unity.ide.vscode": "1.2.3",
7-
"com.unity.nuget.newtonsoft-json": "2.0.0",
8-
"com.unity.test-framework": "1.1.24",
3+
"com.unity.addressables": "1.19.17",
4+
"com.unity.ide.rider": "3.0.9",
5+
"com.unity.ide.visualstudio": "2.0.12",
6+
"com.unity.ide.vscode": "1.2.4",
7+
"com.unity.nuget.newtonsoft-json": "2.0.2",
8+
"com.unity.test-framework": "1.1.30",
99
"com.unity.textmeshpro": "3.0.6",
10-
"com.unity.timeline": "1.5.5",
10+
"com.unity.timeline": "1.6.3",
1111
"com.unity.ugui": "1.0.0",
1212
"com.unity.modules.ai": "1.0.0",
1313
"com.unity.modules.androidjni": "1.0.0",

Packages/packages-lock.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"dependencies": {
33
"com.unity.addressables": {
4-
"version": "1.16.19",
4+
"version": "1.19.17",
55
"depth": 0,
66
"source": "registry",
77
"dependencies": {
8-
"com.unity.scriptablebuildpipeline": "1.15.2",
8+
"com.unity.scriptablebuildpipeline": "1.19.5",
99
"com.unity.modules.assetbundle": "1.0.0",
10+
"com.unity.modules.imageconversion": "1.0.0",
11+
"com.unity.modules.jsonserialize": "1.0.0",
1012
"com.unity.modules.unitywebrequest": "1.0.0",
1113
"com.unity.modules.unitywebrequestassetbundle": "1.0.0"
1214
},
@@ -20,7 +22,7 @@
2022
"url": "https://packages.unity.com"
2123
},
2224
"com.unity.ide.rider": {
23-
"version": "3.0.6",
25+
"version": "3.0.9",
2426
"depth": 0,
2527
"source": "registry",
2628
"dependencies": {
@@ -29,7 +31,7 @@
2931
"url": "https://packages.unity.com"
3032
},
3133
"com.unity.ide.visualstudio": {
32-
"version": "2.0.7",
34+
"version": "2.0.12",
3335
"depth": 0,
3436
"source": "registry",
3537
"dependencies": {
@@ -38,28 +40,28 @@
3840
"url": "https://packages.unity.com"
3941
},
4042
"com.unity.ide.vscode": {
41-
"version": "1.2.3",
43+
"version": "1.2.4",
4244
"depth": 0,
4345
"source": "registry",
4446
"dependencies": {},
4547
"url": "https://packages.unity.com"
4648
},
4749
"com.unity.nuget.newtonsoft-json": {
48-
"version": "2.0.0",
50+
"version": "2.0.2",
4951
"depth": 0,
5052
"source": "registry",
5153
"dependencies": {},
5254
"url": "https://packages.unity.com"
5355
},
5456
"com.unity.scriptablebuildpipeline": {
55-
"version": "1.15.2",
57+
"version": "1.19.5",
5658
"depth": 1,
5759
"source": "registry",
5860
"dependencies": {},
5961
"url": "https://packages.unity.com"
6062
},
6163
"com.unity.test-framework": {
62-
"version": "1.1.24",
64+
"version": "1.1.30",
6365
"depth": 0,
6466
"source": "registry",
6567
"dependencies": {
@@ -79,7 +81,7 @@
7981
"url": "https://packages.unity.com"
8082
},
8183
"com.unity.timeline": {
82-
"version": "1.5.5",
84+
"version": "1.6.3",
8385
"depth": 0,
8486
"source": "registry",
8587
"dependencies": {
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!387306366 &1
4+
MemorySettings:
5+
m_ObjectHideFlags: 0
6+
m_EditorMemorySettings:
7+
m_MainAllocatorBlockSize: -1
8+
m_ThreadAllocatorBlockSize: -1
9+
m_MainGfxBlockSize: -1
10+
m_ThreadGfxBlockSize: -1
11+
m_CacheBlockSize: -1
12+
m_TypetreeBlockSize: -1
13+
m_ProfilerBlockSize: -1
14+
m_ProfilerEditorBlockSize: -1
15+
m_BucketAllocatorGranularity: -1
16+
m_BucketAllocatorBucketsCount: -1
17+
m_BucketAllocatorBlockSize: -1
18+
m_BucketAllocatorBlockCount: -1
19+
m_ProfilerBucketAllocatorGranularity: -1
20+
m_ProfilerBucketAllocatorBucketsCount: -1
21+
m_ProfilerBucketAllocatorBlockSize: -1
22+
m_ProfilerBucketAllocatorBlockCount: -1
23+
m_TempAllocatorSizeMain: -1
24+
m_JobTempAllocatorBlockSize: -1
25+
m_BackgroundJobTempAllocatorBlockSize: -1
26+
m_JobTempAllocatorReducedBlockSize: -1
27+
m_TempAllocatorSizeGIBakingWorker: -1
28+
m_TempAllocatorSizeNavMeshWorker: -1
29+
m_TempAllocatorSizeAudioWorker: -1
30+
m_TempAllocatorSizeCloudWorker: -1
31+
m_TempAllocatorSizeGfx: -1
32+
m_TempAllocatorSizeJobWorker: -1
33+
m_TempAllocatorSizeBackgroundWorker: -1
34+
m_TempAllocatorSizePreloadManager: -1
35+
m_PlatformMemorySettings: {}

0 commit comments

Comments
 (0)