Error CS0246 after deployment, Unity + WebGL

Hi, i'm working on Unity, WebGL build
Getting the next error right after deployment the 1.11 version on Unity 2017.1.0f3:

Assets/Plugins/PhotonLoadbalancingApi/LoadBalancingPeer.cs(100,41): error CS0246: The type or namespace name `PingHttp' could not be found. Are you missing an assembly reference?


Is it not supported in WebGL?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @ArtemistInt,

    Thank you for choosing Photon and reporting this!

    Photon Voice 1.1 includes LoadBalancingApi v4.1.1.14.
    We fixed this issue in LoadBalancingApi v4.1.1.15.

    There are 2 workarounds/hacks to solve this, I tested them, here they are:

    First way:
    1. Move "PhotonLoadBalancingApi" and "PhotonVoiceApi" to top "Assets" folder instead of "Assets\Plugins"
    2. A new error will appear fix it as follows:
    Replace line 1295 of "PhotonClasses.cs":
    from:
    #if UNITY_5_0 || !UNITY_5
    to:
    #if UNITY_5_0 || !UNITY_5 && !UNITY_2017

    Second way:
    1. Download Photon Realtime SDK for Unity (LoadBalancingApi for Unity).
    2. Copy "PhotonAssets\PhotonLoadbalancingApi" to "Plugins\PhotonLoadbalancingApi"
    3. Copy "PhotonAssets\Plugins\Photon3Unity3D.dll*" to "Plugins\Photon3Unity3D.dll*"
    4. A new error will appear fix it as follows:
    Replace line 736 of "LoadBalancingClient.cs":
    from:
    this.Listener.DebugReturn(DebugLevel.WARNING, "WebGL requires WebSockets. Switching TransportProtocol to WebSocketSecure.");
    to:
    this.DebugReturn(DebugLevel.WARNING, "WebGL requires WebSockets. Switching TransportProtocol to WebSocketSecure.");

    I apologize about the inconvenience and we will fix all the errors in future updates.
  • The DotNet and Unity SDKs are updated.
    v4.1.1.17 should include the needed fixes.
  • A Photon Voice update is coming up.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @ArtemistInt,

    Could you try Voice 1.12 just released?