diff --git a/Source/Editor/Options/InterfaceOptions.cs b/Source/Editor/Options/InterfaceOptions.cs
index 360d1a7ed..286ec720d 100644
--- a/Source/Editor/Options/InterfaceOptions.cs
+++ b/Source/Editor/Options/InterfaceOptions.cs
@@ -368,6 +368,13 @@ namespace FlaxEditor.Options
[EditorDisplay("Visject"), EditorOrder(550)]
public float ConnectionCurvature { get; set; } = 1.0f;
+ ///
+ /// Gets or sets the visject connection curvature.
+ ///
+ [DefaultValue(true)]
+ [EditorDisplay("Visject"), EditorOrder(550)]
+ public bool VisualScriptingDescriptionPanel { get; set; } = true;
+
private static FontAsset DefaultFont => FlaxEngine.Content.LoadAsyncInternal(EditorAssets.PrimaryFont);
private static FontAsset ConsoleFont => FlaxEngine.Content.LoadAsyncInternal(EditorAssets.InconsolataRegularFont);
diff --git a/Source/Editor/Surface/ContextMenu/VisjectCM.cs b/Source/Editor/Surface/ContextMenu/VisjectCM.cs
index 23ff43364..b25b4c6e0 100644
--- a/Source/Editor/Surface/ContextMenu/VisjectCM.cs
+++ b/Source/Editor/Surface/ContextMenu/VisjectCM.cs
@@ -58,6 +58,7 @@ namespace FlaxEditor.Surface.ContextMenu
// Description panel elements
private readonly bool _useDescriptionPanel;
+ private bool _descriptionPanelVisible;
private readonly Panel _descriptionPanel;
private readonly Image _descriptionClassImage;
private readonly Label _descriptionSignatureLabel;
@@ -801,7 +802,7 @@ namespace FlaxEditor.Surface.ContextMenu
if(!_useDescriptionPanel)
return;
- if (archetype == null)
+ if (archetype == null || !Editor.Instance.Options.Options.Interface.VisualScriptingDescriptionPanel)
{
HideDescriptionPanel();
return;
@@ -903,6 +904,7 @@ namespace FlaxEditor.Surface.ContextMenu
_descriptionPanel.Height = Mathf.Max(120f, panelHeight);
Height = 400 + _descriptionPanel.Height;
UpdateWindowSize();
+ _descriptionPanelVisible = true;
Profiler.EndEvent();
}
@@ -945,10 +947,14 @@ namespace FlaxEditor.Surface.ContextMenu
///
private void HideDescriptionPanel()
{
+ if(!_descriptionPanelVisible)
+ return;
+
_descriptionInputPanel.RemoveChildren();
_descriptionOutputPanel.RemoveChildren();
Height = 400;
UpdateWindowSize();
+ _descriptionPanelVisible = false;
}
///