Open JesseTG opened 1 year ago
This PR replaces EditorGUI.BeginDisabledGroup with EditorGUI.DisabledGroupScope. Ditto for a couple of similar editor layouts.
EditorGUI.BeginDisabledGroup
EditorGUI.DisabledGroupScope
Using the scopes means that you won't have to manually match Begins and Ends, as the scopes implement IDisposable. This way, an errant exception or control-flow statement won't risk breaking the UI.
Begin
End
IDisposable
This PR replaces
EditorGUI.BeginDisabledGroup
withEditorGUI.DisabledGroupScope
. Ditto for a couple of similar editor layouts.Using the scopes means that you won't have to manually match
Begin
s andEnd
s, as the scopes implementIDisposable
. This way, an errant exception or control-flow statement won't risk breaking the UI.