Skip to content

Commit 959f583

Browse files
committed
Removes IEcsWorldEventListener in non-Debug builds
1 parent 0e3a3c6 commit 959f583

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Runtime/WorldDebugSystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
using Leopotam.EcsLite;
33

44
namespace Nomnom.EcsLiteDebugger {
5+
#if DEBUG || LEOECSLITE_WORLD_EVENTS
56
public class WorldDebugSystem: IEcsPreInitSystem, IEcsRunSystem, IEcsDestroySystem, IEcsWorldEventListener {
7+
#else
8+
public class WorldDebugSystem: IEcsPreInitSystem, IEcsRunSystem, IEcsDestroySystem {
9+
#endif
610
private readonly string _name;
711
private WorldDebugView _view;
812
private List<(int, WorldDebugView.ChangeType)> _dirtyEntities;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.nomnom.ecslite-debugger",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"displayName": "ecsLite Debugger",
55
"description": "Provides a hierarchy and inspector window to view world entities, and mutate components.",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)