Skip to content

Commit 9651d55

Browse files
committed
update layout
1 parent 9b59b30 commit 9651d55

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Assets/Editor/Editor Windows/ScriptableObjectEditorWindow.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ private void OnGUI()
6868
if (selectedTypes.Count == 0 || !selectedTypes.Contains(configGroup[0].GetType()))
6969
continue;
7070

71+
GUILayout.Space(15);
72+
7173
GUILayout.Label(configGroup[0].GetType().Name, EditorStyles.boldLabel); // Display the type name as a section header
7274

7375
EditorGUILayout.BeginHorizontal("box");
@@ -126,7 +128,7 @@ private void PutPropertiesForObject<T>(List<T> Configs) where T : ScriptableObje
126128
if (property.propertyType != SerializedPropertyType.ArraySize && property.name != "m_Script" && property.name != "data") // Exclude internal Unity fields and arrays
127129
{
128130
// Show the name of each property as a label
129-
EditorGUILayout.LabelField(property.name, GUILayout.MinWidth(PropertyMinWidth));
131+
EditorGUILayout.LabelField(property.name, GUIL_StandartOptions);
130132
// if any property is bigger than expected this will calculate extra space needed (ex: array properties can expand)
131133
if (property.isExpanded)
132134
GUILayout.Space(CalculatePropertyHeight(Configs, property) - EditorGUIUtility.singleLineHeight);

Assets/Resources/ScriptableObjects/Test2Config.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MonoBehaviour:
1212
m_Script: {fileID: 11500000, guid: 2cac81c9ac410e441bde07e00491a572, type: 3}
1313
m_Name: Test2Config
1414
m_EditorClassIdentifier:
15-
numberArray: 00000000000000000000000000000000
15+
numberArray: 01000000020000000300000004000000
1616
gameObjectArray:
1717
- {fileID: 0}
1818
- {fileID: 0}

0 commit comments

Comments
 (0)