petitviolet blog

    c# (2 posts)

    Written by petitviolet

    How to use Firestore SDK in WebGL built by Unity

    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

    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]( As the document illustrates, UnityWebRequest handles Web requests with