From e9e96b21d3e6afdc8837d860881f5478313e1398 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sun, 23 Mar 2025 14:48:02 +0100 Subject: [PATCH] put terrain info into own Properties panel group --- Source/Editor/CustomEditors/Dedicated/TerrainEditor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Dedicated/TerrainEditor.cs b/Source/Editor/CustomEditors/Dedicated/TerrainEditor.cs index 8aaf5b7d6..05945efe7 100644 --- a/Source/Editor/CustomEditors/Dedicated/TerrainEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/TerrainEditor.cs @@ -2,6 +2,7 @@ using FlaxEditor.Utilities; using FlaxEngine; +using FlaxEngine.GUI; namespace FlaxEditor.CustomEditors.Dedicated { @@ -33,8 +34,12 @@ namespace FlaxEditor.CustomEditors.Dedicated totalSize.X / Units.Meters2Units * 0.001f, totalSize.Z / Units.Meters2Units * 0.001f ); - var label = layout.Label(text); + + var group = layout.Group("Info"); + var label = group.Label(text); label.Label.AutoHeight = true; + // Add a bit of padding to make it look nicer + label.Label.Margin = new Margin(3); } } }