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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

OnMatchJoined not virtual?

Discussion in 'Multiplayer' started by Capn_Andy, Sep 30, 2015.

  1. Capn_Andy

    Capn_Andy

    Joined:
    Nov 20, 2013
    Posts:
    80
    I'm writing an extension to NetworkManager to help handle/create an automatic matchmaking drop-in/drop-out sorta game setup, but I notice OnMatchJoined isn't virtual so I can't override it - yet every other "on..." function is virtual. Is there a reason for this?
     
  2. RKOvlesen

    RKOvlesen

    Joined:
    Oct 29, 2013
    Posts:
    9
  3. OutSourceStudio

    OutSourceStudio

    Joined:
    Nov 7, 2015
    Posts:
    2
    Nope, it's not possible in the newest version either..
     
  4. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    Hi Everyone,
    Thanks for reporting this, the missing virtual keyword is an oversight on that one function. I'll put the fix in, though it wont come out until a future version of Unity.

    As a workaround you can supply your own callback to the JoinMatch() function, just be sure to then call the OnMatchJoined() callback from within your custom callback.
     
  5. apolotary

    apolotary

    Joined:
    Feb 26, 2015
    Posts:
    11
    Was it fixed in the patch from Nov 16th? Really need this functionality for my project right now :(
     
  6. Dan-Weaver

    Dan-Weaver

    Joined:
    Feb 13, 2014
    Posts:
    1
    Still not working as of 5.2.3f1
     
  7. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Future version means it could be 5.3, 5.4, or 6.0.
     
  8. apolotary

    apolotary

    Joined:
    Feb 26, 2015
    Posts:
    11
    Still not fixed in 5.3
     
  9. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Then we can assume it's going to be in 6.0.
     
  10. Bernardo_Olafson

    Bernardo_Olafson

    Joined:
    Feb 11, 2015
    Posts:
    5
    Are you kidding me? How can such an oversight slip through the Q&A and still be not fixed after this was already reported here on 30th September? This should take 30 seconds to fix!
     
  11. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    This change missed the 5.3 submission window which is why it never made it in. It is fixed in 5.4.