Skip to content

Commit 6da15ab

Browse files
author
Bruno Mikoski
committed
fix: issue where trying to load a non existent CollectionRegistry
1 parent 443d44e commit 6da15ab

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.MD

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ 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+
8+
## [1.3.2]
9+
### Changed
10+
- Fixed issue when trying to play without the `CollectionRegistry` created
11+
712
## [1.3.1]
813
### Added
9-
- Added basic copy/paste functionality between colelctables
14+
- Added basic copy/paste functionality between colelctables
1015

1116
### Changed
1217
- Removed multiple `AssetDatabase.SaveAssets();` to improve general performance when adding / removing objects
@@ -167,6 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
167172

168173
### [Unreleased]
169174

175+
[1.3.2]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.3.2
170176
[1.3.1]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.3.1
171177
[1.3.0]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.3.0
172178
[1.2.9]: https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.2.9

Scripts/Runtime/CollectionsEditorBehaviour.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ static CollectionsEditorBehaviour()
1414

1515
private static void OnPlayModeChanged(PlayModeStateChange playModeState)
1616
{
17+
if (CollectionsRegistry.Instance == null)
18+
return;
19+
1720
if (playModeState == PlayModeStateChange.EnteredPlayMode)
1821
CollectionsRegistry.Instance.PrepareForPlayMode();
1922
else if(playModeState == PlayModeStateChange.ExitingPlayMode)

0 commit comments

Comments
 (0)