You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: [NGOv2.x] Add OnPreShutdown to NetworkManager (#3366)
Forwardport of
#3358
This PR adds a `NetworkManager.OnPreShutdown` callback that happens
before the internal shutdown is done. This is to allow accessing any
state that is cleaned up by the `NetworkManager` during shutdown, such
as accessing dynamically spawned NetworkObjects.
## Changelog
- Added: The event NetworkManager.OnPreShutdown has been added which is
called before the NetworkManager cleans up and shuts down.
## Testing and Documentation
- A test has been added to ensure this is being called, and called
before OnServerStopped.
<!-- Uncomment and mark items off with a * if this PR deprecates any
API:
### Deprecated API
- [ ] An `[Obsolete]` attribute was added along with a `(RemovedAfter
yyyy-mm-dd)` entry.
- [ ] An [api updater] was added.
- [ ] Deprecation of the API is explained in the CHANGELOG.
- [ ] The users can understand why this API was removed and what they
should use instead.
-->
---------
Co-authored-by: Noel Stephens <[email protected]>
0 commit comments