Skip to content

Commit 73ab4a1

Browse files
authored
Merge pull request #68 from brunomikoski/bugfix/fix-reload-in-batch-mode
Bugfix/fix reload in batch mode
2 parents 892f10a + d773d7a commit 73ab4a1

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.5.3]
8+
### Changed
9+
- Disabled the reload of the collection after script reloading on batch mode.
10+
711
## [1.5.2]
812
### Changed
913
- Deleted old .meta files
@@ -216,6 +220,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
216220

217221
### [Unreleased]
218222

223+
[1.5.3]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.5.3
219224
[1.5.2]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.5.2
220225
[1.5.1]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.5.1
221226
[1.5.0]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.5.0

Scripts/Editor/Core/RegistryEditorBehaviour.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using UnityEditor;
22
using UnityEditor.Callbacks;
3+
using UnityEngine;
34

45
namespace BrunoMikoski.ScriptableObjectCollections
56
{
@@ -14,6 +15,9 @@ static RegistryEditorBehaviour()
1415
[DidReloadScripts]
1516
private static void AfterScriptsReload()
1617
{
18+
if (Application.isBatchMode)
19+
return;
20+
1721
CollectionsRegistry.Instance.ReloadCollections();
1822
}
1923

Scripts/Runtime/Core/CollectionsRegistry.cs

Lines changed: 0 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.brunomikoski.scriptableobjectcollection",
33
"displayName": "Scriptable Object Collection",
4-
"version": "1.5.2",
4+
"version": "1.5.3",
55
"unity": "2018.4",
66
"description": "A library to help improve the usability of Unity3D Scriptable Objects by grouping then into a collection and exposing then by code or nice inspectors!",
77
"keywords": [

0 commit comments

Comments
 (0)