Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I transplanted their behavior tree Debug window from fluid-behavior-tree #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
!W(Debugger) Add Label
  • Loading branch information
yika-aixi committed Aug 8, 2020
commit 3aedcb70e0bd37b9c0a7b577c9928aef284de925
2 changes: 1 addition & 1 deletion Editor/DebuggerEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class DebuggerEditor : Editor
{
public override void OnInspectorGUI()
{
GUILayout.Label("NPBehave Debugger", EditorStyles.centeredGreyMiniLabel);
GUILayout.Label($"NPBehave Debugger {(target as Debugger).Label}", EditorStyles.centeredGreyMiniLabel);

if (GUILayout.Button("Open Debugger"))
{
Expand Down
2 changes: 1 addition & 1 deletion Editor/DebuggerWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void OnGUI()
if (nameToTagString == null) Init(); // Weird recompile bug fix

GUI.color = defaultColor;
GUILayout.Toggle(false, "NPBehave Debugger", GUI.skin.FindStyle("LODLevelNotifyText"));
GUILayout.Toggle(false, $"NPBehave Debugger {selectedDebugger?.Label}", GUI.skin.FindStyle("LODLevelNotifyText"));
GUI.color = Color.white;

if (!Application.isPlaying)
Expand Down
2 changes: 2 additions & 0 deletions Scripts/Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public class Debugger : MonoBehaviour
{
public Root BehaviorTree;

public string Label;

private static Blackboard _customGlobalStats = null;
public static Blackboard CustomGlobalStats
{
Expand Down