Multiple OnRoomPropertiesUpdate() Callbacks

Options
I'm witnessing a certain behavior, and wanted to double check if it is the expected behavior, or if I'm doing something incorrectly.

If I have multiple classes in the same game instance that override the OnRoomPropertiesUpdate(Hashtable propertiesThatChanged) method, is it expected that only one will get called when the room properties are updated, or should they all get called? I expected that they would all get called, but from my testing it seems that only one of the callbacks gets called. If I comment out that overridden method, than another of the methods get called (but still only one).

Is the behavior I'm witnessing expected? Or should all my overridden callbacks get called?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @SetBitZero,

    Thank you for choosing Photon!

    All callbacks methods in classes that implement their respective callbacks interface or in classes that extend classes that implement those interfaces AND in both cases, the class registers itself, will be called.

    Double-check that all classes are doing the callbacks-registration properly.
    Read here and here.