com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Extra Events like: OnShutdownComplete/OnNetworkManagerConnected

Open itismarcii opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently you have a limited amount of events which are used for workarounds. For example is the OnClientConnectedCallback often used to perform code from the Client side immediatly after the connection. But that has the flaw that other Client spawns also occure. An OnNetworkManagerConnected would be an good alternative to perform code after your own NetworkManager is completly connected.

Another helpful event would be a OnShutdownComplete, which performs after the NetworkManager is completly shutdown. Currently is a workaround possible through check of the ShutdownInProgress in each frame. A example would be to connect to another server after your disconnect was complete.

Describe the solution you'd like Basically an event for OnShutdownComplete and OnNetworkManagerConnected would be very helpful in a lot of cases. Thanks :)

itismarcii avatar Aug 25 '22 14:08 itismarcii