Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.

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

Discussion in 'Unity Transport' started by michal_unity171, May 30, 2022.

  1. michal_unity171


    Apr 14, 2021

    I have working Relay setup, that breaks when I load pretty big scene in Editor using
    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?
  2. Awix_Studio


    May 18, 2022
    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.