petitviolet blog

    unity (2 posts)

    icon
    Written by petitviolet

    How to use Firestore SDK in WebGL built by Unity

    2022-10-15UnityFirestoreC#
    Official Firestore SDK can't run on Unity WebGL. Use .jslib for interacting JS SDK and C#.
    Firebase offers Cloud Firestore which is a well-known NoSQL document datastore that has been widely used in particularly mobile app development. One of the key features of Firestore I think is realtime-ish data propagation through Firestore SDK. When a client is subscribing a (sub-)collection and

    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