PhotonNetwork.SetInterestGroups will affect RPC call multiple times

Options
Hi,
I'm testing Photon "Interest Groups".Then I found When I Called PhotonNetwork.SetInterestGroups(1,true) more times.
The client will receive multiple RPC or RaiseEvent calls from photonView with group 1(Other Client).
Is the result correct?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited June 2019
    Options
    Hi @zerochd,

    Could you explain this better?
    What are the minimal repro steps?
    What is the expected behaviour and current behaviour?

    An example maybe, a screenshot or console logs?
    Is this PUN2.12?
  • zerochd
    Options
    Hi @JohnTube ,
    I'm using PUN2.12.
    And Photon Server version:4.0.29.11263.
    I did some testing later.I think the problem is on the local photon server.Cloud is ok.
    Here are my report steps on local server:
    1.I called PhotonNetwork.SetInterestGroups(1,true) on Client A.
    2.I called PhotonNetwork.SetInterestGroups(1,true) again on Client A.
    3.In Client B,I set photonView.Group = 1;
    4.Client B Call RaiseEvent.

    Expected Behaviour:Client A receive one EventCallBack.
    Current Behaviour:Client A recive two EventCallBack.
    The Same is true of RPC

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @zerochd,

    I'm moving this discussion to Photon Server category.
    This could be a bug in 4.0.29.11263 that is already fixed in the version running on Photon Cloud.
    My colleague @chvetsov may know better.
  • chvetsov
    Options
    hi, @zerochd

    Yeah, current public sdk does allow to add actor to same group many times. So, do not do it ;). Cloud version and future sdk will not allow to do this.

    best,
    ilya