Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Third Party Photon Network ""OnPlayerEnteredRoom" API never called

Discussion in 'Multiplayer' started by Christian_Perri, Feb 22, 2023.

  1. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    Hi,i am implementing the Photon APIs in my unity3d game,i set up the region server ecc....,all the others callbacks work but "OnPlayerEnteredRoom" and "OnPlayerLeftRoom" not.
    Do you know how to solve the problem?
     
  2. nilagard

    nilagard

    Joined:
    Jan 13, 2017
    Posts:
    77
    Have you attached a debugger and checked if the functions are called or skipped entirely? It should be called, unless you are forcing it to be skipped or you have some unproper code inside those functions.
     
  3. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,737
    Have you registered to receive those callbacks?
     
  4. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,079
    Implement the IInRoomCallbacks in some class and make sure this registers for callbacks at runtime.
     
  5. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    the problem vas the method OnEntered i had to add "base.OnEntered"