Htps customer for WebGL bill in Unity3d



  • We need a client to send a WebGL bill or a tip on how to do it.

    https://docs.unity3d.com/ScriptReference/WWW.html He's terrible. There's at least no keep-alive compounds, plus it's bad from https.

    https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.html Can't keep-alive.

    Got it. https://www.assetstore.unity3d.com/en/#!/content/38367 for web grids, but it hasn't been updated for a year.

    For all the others, I'm using my decision on the basis of the raw cell phones (C# TcpClient), but this is the name space inaccessible to the WebGL bill.

    Proposals?



  • Like, https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.html You can use it now. In Unity 5.3 this component was experimental namespace and worked through the deck.

    In Untiy 5.4, the class is transferred to UnityEngine.Networking and stable. Surprisedly, there's a connection that keeps. So it can be used for WebGL now (at least in Unity stat= 5.4).

    Note: For WebGL, your server should be sent. https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS ♪ The server should also support OPTIONS requests.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2