diff --git a/Source/Engine/Input/KeyboardKeys.h b/Source/Engine/Input/KeyboardKeys.h index fe6daa12b..12f79ea1f 100644 --- a/Source/Engine/Input/KeyboardKeys.h +++ b/Source/Engine/Input/KeyboardKeys.h @@ -745,7 +745,7 @@ API_ENUM() enum class KeyboardKeys LeftBracket = 0xDB, /// - /// Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard the '\\|' key + /// Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard the '\|' key /// Backslash = 0xDC, diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index 26fa55231..cff6be5a5 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -469,9 +469,8 @@ namespace Flax.Build.Bindings if (comment[i - 1].StartsWith("/// ")) tooltip += " " + comment[i - 1].Substring(4); } - if (tooltip.IndexOf('\"') != -1) - tooltip = tooltip.Replace("\"", "\\\""); - contents.Append(indent).Append("[Tooltip(\"").Append(tooltip).Append("\")]").AppendLine(); + tooltip = tooltip.Replace("\"", "\"\""); + contents.Append(indent).Append("[Tooltip(@\"").Append(tooltip).Append("\")]").AppendLine(); } } if (writeDefaultValue)