Relay disconnects player due to inactivity when loading a scene in the editor.

Hi,

I have working Relay setup, that breaks when I load pretty big scene in Editor using
UnityEngine.SceneManagement.SceneManager.LoadSceneAsync.
Editor gets stuck for a few seconds, I guess when parsing or calling Awake…

Relay in the meantime throws error:

Received error message from Relay: player timed out due to inactivity. This could be due to an inappropriate value for reconnectionTimeMS when calling NetworkSettings.WithRelayParameters. Also make sure to schedule NetworkDriver updates frequently to avoid this error.

I’ve tried rising and lowering the reconnectionTimeMS, but no luck. Unity locks for about 8 seconds.
This works fine in build even though the game also locks for pretty similar time.

How to work around this?

1 Like

Which Unity version do you use? I had the same problem on 2021.3.5, after change to 2021.2.17 everything works fine for me.