From 44ecac7ffc34d0102f142eccc3ad49c074d64fad Mon Sep 17 00:00:00 2001 From: Saas Date: Sat, 14 Mar 2026 16:52:56 +0100 Subject: [PATCH] make debug text more legible --- Source/Editor/Surface/Archetypes/BehaviorTree.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Surface/Archetypes/BehaviorTree.cs b/Source/Editor/Surface/Archetypes/BehaviorTree.cs index 7eb9df286..30b05ed78 100644 --- a/Source/Editor/Surface/Archetypes/BehaviorTree.cs +++ b/Source/Editor/Surface/Archetypes/BehaviorTree.cs @@ -249,7 +249,11 @@ namespace FlaxEditor.Surface.Archetypes // Debug Info if (!string.IsNullOrEmpty(_debugInfo)) - Render2D.DrawText(style.FontSmall, _debugInfo, new Rectangle(4, _headerRect.Bottom + 4, _debugInfoSize), style.Foreground); + { + // Draw an extra background to cover the archetype color colored node background and make text more legible + Render2D.FillRectangle(new Rectangle(0, _headerRect.Bottom + 4, Width, Height - _headerRect.Bottom - 4), style.BackgroundHighlighted); + Render2D.DrawText(style.FontSmall, _debugInfo, new Rectangle(4, _headerRect.Bottom + 7, _debugInfoSize), style.Foreground, scale: 0.8f); + } // Debug relevancy outline if (_debugRelevant)