petitviolet blog

    unity (1 posts)

    icon
    Written by petitviolet

    Working with Json over HTTP in Unity

    2022-09-15UnityC#
    To send and receive JSON payload over HTTP in Unity, some techniques needed for de-/serialization.
    Unity provides handy class called UnityWebRequest for sending HTTP requests. See the document for details. [Unity - Scripting API: UnityWebRequest](https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.html) As the document illustrates, UnityWebRequest handles Web requests with