com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
Make it possible to get endpoint bindings in transport
When you open any free port (property UnityTransport.ConnectionData.Port = 0), then after the server starts, it is impossible to determine which port is attached. The property LocalEndpoint is in NetworkDriver, but this instance is private.
In the UnityTransport class, you need to organize a property to get LocalEndpoint after binding via a NetworkDriver instance, for example.