Skip to content

Commit

Permalink
fix: batch mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomikoski committed Mar 7, 2022
1 parent 5b415e3 commit d168463
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.4]
### Changed
- Fixed batch mode issue

## [0.1.3]
### Changed
- Fixed an issue where new Hierarchy Window would be created if they where hidden.
Expand Down Expand Up @@ -46,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### [Unreleased]


[0.1.4]: https://github.com/brunomikoski/SceneKeeper/releases/tag/v0.1.4~~~~
[0.1.3]: https://github.com/brunomikoski/SceneKeeper/releases/tag/v0.1.3
[0.1.2]: https://github.com/brunomikoski/SceneKeeper/releases/tag/v0.1.2
[0.1.1]: https://github.com/brunomikoski/SceneKeeper/releases/tag/v0.1.1
Expand Down
3 changes: 3 additions & 0 deletions Scripts/Editor/SceneStateKeeper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ private static SceneData SceneData

static SceneStateKeeper()
{
if (Application.isBatchMode)
return;

EditorSceneManager.sceneOpened += OnSceneOpened;
SceneManager.sceneLoaded += OnSceneLoaded;
EditorSceneManager.sceneClosing += OnSceneClosing;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.brunomikoski.scenekeeper",
"displayName": "Scene Keeper",
"version": "0.1.3",
"version": "0.1.4",
"unity": "2018.4",
"description": "A tool that keeps your scene hierarchy between editor/play time, and opening and close scene",
"keywords": [
Expand Down

0 comments on commit d168463

Please sign in to comment.