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.

Bug 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:
    28
    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,724
    Have you registered to receive those callbacks?
     
  4. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,990
    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:
    28
    the problem vas the method OnEntered i had to add "base.OnEntered"