Skip to content

Commit

Permalink
Attempt to fix SerializedProperty iterator errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Jan 25, 2024
1 parent 5796f89 commit 71c855d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Editor Toolbox/Editor/ToolboxEditorGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,12 @@ public static void DrawPropertyChildren(SerializedProperty property, Action<Seri
enterChildren = false;
var childProperty = targetProperty.Copy();
//handle current property using Toolbox features
EditorGUI.BeginChangeCheck();
drawElementAction(childProperty);
if (EditorGUI.EndChangeCheck())
{
break;
}
}
}

Expand Down

0 comments on commit 71c855d

Please sign in to comment.