Skip to content

Commit

Permalink
if TOOL
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jan 16, 2024
1 parent 2c23df2 commit a64f64d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/R3.Godot/addons/R3.Godot/ObservableTrackerRuntimeHook.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#nullable enable

#nullable enable

using Godot;
using System;
Expand All @@ -12,6 +13,7 @@ public partial class ObservableTrackerRuntimeHook : Node
{
public override void _Ready()
{
#if TOOLS
EngineDebugger.RegisterMessageCapture(ObservableTrackerDebuggerPlugin.MessageHeader, Callable.From((string message, GDArray data) =>
{
//GD.Print(nameof(ObservableTrackerRuntimeHook) + " received " + message);
Expand Down Expand Up @@ -44,10 +46,13 @@ public override void _Ready()
}
return true;
}));
#endif
}

public override void _ExitTree()
{
#if TOOLS
EngineDebugger.UnregisterMessageCapture(ObservableTrackerDebuggerPlugin.MessageHeader);
#endif
}
}

0 comments on commit a64f64d

Please sign in to comment.