diff --git a/Source/Engine/UI/GUI/Common/TextBox.cs b/Source/Engine/UI/GUI/Common/TextBox.cs
index f99d7140a..da8b299cb 100644
--- a/Source/Engine/UI/GUI/Common/TextBox.cs
+++ b/Source/Engine/UI/GUI/Common/TextBox.cs
@@ -24,6 +24,18 @@ namespace FlaxEngine.GUI
get => _watermarkText;
set => _watermarkText = value;
}
+
+ ///
+ /// Whether to Obfuscate the text with a different character.
+ ///
+ [EditorOrder(21), Tooltip("Whether to Obfuscate the text with a different character.")]
+ public bool ObfuscateText = false;
+
+ ///
+ /// The character to Obfuscate the text.
+ ///
+ [EditorOrder(22), VisibleIf(nameof(ObfuscateText)), Tooltip("The character to Obfuscate the text.")]
+ public char ObfuscateCharacter = '\u25cf';
///
/// The text case.
@@ -159,6 +171,9 @@ namespace FlaxEngine.GUI
private string ConvertedText()
{
+ if (ObfuscateText)
+ return new string(ObfuscateCharacter, _text.Length);
+
string text = _text;
switch (CaseOption)
{