A simple chat function with firebase realtime database and anonymous authentication.
This project in using Unity version 2019.4.0f1 screen ratio => 9:16
Before you use this project:
-
Create a firebase project
-
Add the google-services.json via (project->setting->app)
the rule can be
{
"rules": {
".write": "auth.uid != null"
".read": "auth.uid != null"
}
}
or all public.
Flow Chart for Anonymous login
I use SimpleJSON and JSON .NET For Unity to easier to manage data. SimpleJSON => https://wiki.unity3d.com/index.php/SimpleJSON
JSON.NET For Unity => https://assetstore.unity.com/packages/tools/input-management/json-net-for-unity-11347