Skip to content

Commit

Permalink
fix: stopping exception when creating new SO
Browse files Browse the repository at this point in the history
need to call ExitGUI after creating SO or unity will throw exception.
  • Loading branch information
James-Frowen committed Feb 3, 2023
1 parent 9e52690 commit f55e929
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Mirage/Editor/NetworkPrefabsPropertyDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private void createNewValue(SerializedProperty property)

property.objectReferenceValue = value;
property.serializedObject.ApplyModifiedProperties();
GUIUtility.ExitGUI();
}

private void valueGUI(Rect rect, SerializedProperty property, GUIContent label)
Expand Down

0 comments on commit f55e929

Please sign in to comment.