Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 43016f3

Browse files
Fixed collections
1 parent 88b507e commit 43016f3

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

Assets/SO Architecture/Editor/Drawers/GenericPropertyDrawer.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,13 @@ public static float GetHeight(SerializedProperty property, Type type)
7373
int elements = 0;
7474

7575
PropertyIterator iter = new PropertyIterator(property);
76-
if (property.Next(true))
76+
do
7777
{
78-
while (iter.Next())
79-
{
80-
++elements;
81-
}
82-
83-
iter.End();
78+
++elements;
8479
}
80+
while (iter.Next());
81+
82+
iter.End();
8583

8684
float spacing = (elements - 1) * EditorGUIUtility.standardVerticalSpacing;
8785
float elementHeights = elements * EditorGUIUtility.singleLineHeight;

Assets/SO Architecture/Editor/Generic Property Drawer.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)