public void Dispose() { // don't unsubscribe here because on exiting playmode OnEnable/OnDisable // is called. no clue why. // EditorApplication.update -= Update; MenuActionStyles.ResetStyles(); }
void OnDestroy() { // store the scroll in both disable & destroy because there are // situations where one gets updated over the other and it's all // screwy. script reloads in particular? MenuActionStyles.ResetStyles(); }