Add default spacing for CollectionEditor to 10 for cleaner UI when working with arrays and lists in Editor

This commit is contained in:
Wojtek Figat
2021-01-18 11:42:50 +01:00
parent c1216a4318
commit ba050b9eaa

View File

@@ -116,7 +116,7 @@ namespace FlaxEditor.CustomEditors.Editors
// Try get CollectionAttribute for collection editor meta // Try get CollectionAttribute for collection editor meta
var attributes = Values.GetAttributes(); var attributes = Values.GetAttributes();
Type overrideEditorType = null; Type overrideEditorType = null;
float spacing = 0.0f; float spacing = 10.0f;
var collection = (CollectionAttribute)attributes?.FirstOrDefault(x => x is CollectionAttribute); var collection = (CollectionAttribute)attributes?.FirstOrDefault(x => x is CollectionAttribute);
if (collection != null) if (collection != null)
{ {