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. Dismiss Notice

Resolved Stop Unity from disconnecting while debugging in VS

Discussion in 'Multiplayer' started by RZGames_Jethro, Sep 7, 2023.

  1. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    Is there a way to prevent a disconnect or network shutdown when hooked up to VS for debugging?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,013
  3. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    ok thanks, not super clear, but i guess it's this?
    Code (CSharp):
    1.  Increasing our FixedTimeStep setting to a ridiculous value (something as high as 0.2) helps to have more time to see what’s going on.
     
  4. CodeNinja-

    CodeNinja-

    Unity Technologies

    Joined:
    Feb 22, 2023
    Posts:
    26
    Hello @RZGames_Jethro,

    I think CodeSmile was referring to this part:

    Does that help?
     
  5. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    certainly, where do we find the TimeOut Value?
     
  6. CodeNinja-

    CodeNinja-

    Unity Technologies

    Joined:
    Feb 22, 2023
    Posts:
    26
    You can do it by code (see the UTP 2.0 FAQs):
    Or directly from the inspector:
    upload_2023-9-15_11-11-55.png

    Hope that helps!
     
  7. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    muchos gracias sir, that helps indeed! ;)
     
    CodeNinja- likes this.