Skip to content

Commit 5e5f532

Browse files
committed
fix: enable OnEnable/OnDisable override
1 parent b2e2936 commit 5e5f532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Editor/CustomEditors/CollectionCustomEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ private void OnToggleExpand(MouseUpEvent evt)
389389
expandShrinkButton.text = isOn.Value ? "▸◂" : "◂▸";
390390
}
391391

392-
private void OnEnable()
392+
protected virtual void OnEnable()
393393
{
394394
collection = (ScriptableObjectCollection)target;
395395

@@ -401,7 +401,7 @@ private void OnEnable()
401401
generator = generatorType == null ? null : CollectionGenerators.GetGenerator(generatorType);
402402
}
403403

404-
private void OnDisable()
404+
protected virtual void OnDisable()
405405
{
406406
SOCSettings.Instance.SaveCollectionSettings(collection, true);
407407
}

0 commit comments

Comments
 (0)