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

Make it possible to get endpoint bindings in transport

Open deeffoora opened this issue 3 years ago • 0 comments

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.

deeffoora avatar Aug 22 '22 14:08 deeffoora