-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added "OnServerStopped" event [MPDSE-10] #2420
Conversation
… server (or host player) to notify that the server is no longer active. [CI] Added tests for OnServerStopped
Note about the tests I added: |
…trigger only on the client (or host player) to notify that the client just started or is no longer active * test Added a more robust/wider range of tests, that covers the Started/Stopped events for client, server and hosts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me pending the minor XML API adjustments.
👍
com.unity.netcode.gameobjects/Tests/Runtime/NetworkManagerEventsTests.cs
Outdated
Show resolved
Hide resolved
Paolo Abela seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
…ent times in Host vs Client-only / Server-only mode
This PR addresses this feature request , allowing users to write code that is executed when a server stops (I.E: for sending post-game analytics in a dedicated game server instance)
Changelog
Testing and Documentation