Skip to content

Commit 2a6bfd5

Browse files
committed
Removed usless resource unload
1 parent b7e77ae commit 2a6bfd5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/BaseGraphWindow.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ public void InitializeGraph(BaseGraph graph)
9595
AssetDatabase.SaveAssets();
9696
// Unload the graph
9797
graphUnloaded?.Invoke(this.graph);
98-
99-
if (!this.graph.IsLinkedToScene())
100-
Resources.UnloadAsset(this.graph);
10198
}
10299

103100
graphLoaded?.Invoke(graph);

0 commit comments

Comments
 (0)