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 [Wire]: Exiting playmode, disconnecting, and cleaning subscription repo.

Discussion in 'Matchmaker' started by MidnightGameDeveloper, Apr 18, 2023.

  1. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    114
    Hello,
    after updating my project to the newest version of 2021.3.23 which includes com.unity.services.wire-1.1.4 I get the following debug message whenever I leave the play mode:
    [Wire]: Exiting playmode, disconnecting, and cleaning subscription repo.

    I would like to ask if this is intended?

    I didn't know where to post this question, but as I think that Matchmaker is using this package I decided to post it here.
     
  2. arnaud_gout

    arnaud_gout

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    26
    Hey there, thanks for reaching out!
    Yes it's intentional. We might delete this log in the future versions as it may be a bit confusing!
     
  3. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    114
    Thanks for the clarification!
     
  4. BSimonSweet

    BSimonSweet

    Joined:
    Aug 17, 2022
    Posts:
    51
    Hi ! Sorry to revive this post, but I have a small issue with this Wire package.

    Whenever I leave Play Mode, an additional log "[Wire] Exiting playmode, disconnecting, and cleaning subscription repo." is logged in the console. So if I enter and leave PlayMode 5 times, the fifth time there is 5 logs at once, then for the sixth time, 6 logs at once and so on.

    I think this is because the package add a callback to "EditorApplication.playModeStateChanged" but never remove that callback.

    upload_2023-6-16_10-40-14.png

    Edit : for information, this is Wire 1.1.5, will using Multiplay 1.0.4.
     
  5. arnaud_gout

    arnaud_gout

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    26
    Hey BSimon, good catch, we're going to fix that :)
     
    BSimonSweet likes this.