Merge branch 'script-group' of https://github.com/Tryibion/FlaxEngine into Tryibion-script-group

This commit is contained in:
Wojtek Figat
2024-05-22 23:12:18 +02:00

View File

@@ -880,6 +880,13 @@ namespace FlaxEditor.CustomEditors.Dedicated
group.Panel.HeaderTextMargin = new Margin(scriptDrag.Right - 12, 15, 2, 2);
group.Object(values, editor);
// Remove drop down arrows and containment lines if no objects in the group
if (group.Children.Count == 0)
{
group.Panel.ArrowImageOpened = null;
group.Panel.ArrowImageClosed = null;
group.Panel.EnableContainmentLines = false;
}
// Scripts arrange bar
dragBar = layout.Custom<ScriptArrangeBar>();