Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Photon - OnRegionListReceived is never triggered when ConnectUsingSettings on WebGL

Discussion in 'Web' started by jcbadboy, Apr 20, 2023.

  1. jcbadboy

    jcbadboy

    Joined:
    Mar 24, 2010
    Posts:
    57
    Hello,

    I have this issue with the OnRegionListReceived event never getting triggered when ConnectUsingSettings on WebGL.

    The event works well on the Unity editor, as expected.

    Some additional details:

    The working code:

    client.AddCallbackTarget(this);
    client.StateChanged += OnStateChange;
    client.AppId = _appId;
    var appSettings = PhotonServerSettings.CloneAppSettings(PhotonServerSettings.Instance.AppSettings);
    appSettings.AppIdRealtime = _appId;
    client.ConnectUsingSettings(appSettings);

    Settings:



    Without the regions list I can't to know where to connect. I'm looking for the best region ping.


    Thanks in advanced.