Skip to content

Commit ae8e25d

Browse files
committed
fix: disable reload of collection in
1 parent 892f10a commit ae8e25d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Scripts/Runtime/Core/CollectionsRegistry.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using BrunoMikoski.ScriptableObjectCollections.Core;
54
using UnityEngine;
65
#if UNITY_EDITOR
76
using UnityEditor;
8-
using UnityEditor.Compilation;
97

108
#endif
119

@@ -246,6 +244,9 @@ public void DeleteCollection(ScriptableObjectCollection collection)
246244
public void ReloadCollections()
247245
{
248246
#if UNITY_EDITOR
247+
if (Application.isBatchMode)
248+
return;
249+
249250
if (Application.isPlaying)
250251
return;
251252

0 commit comments

Comments
 (0)