From 8921cf51569ef68a422c975f192952e01540c18e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 9 Sep 2025 10:42:10 +0200 Subject: [PATCH] Add label/button text to string convertion for better debugging --- Source/Engine/UI/GUI/Common/Label.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index 72d4cd188..df77acc14 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -344,5 +344,11 @@ namespace FlaxEngine.GUI base.PerformLayoutBeforeChildren(); } + + /// + public override string ToString() + { + return $"{GetType()}, '{ConvertedText()}'"; + } } }