FirebaseDatabase.GetInstance(). Everything else — listeners, writes, transactions — works without changes.
Setup
Add the Firebase Realtime Database package to your Unity project:- Download the Firebase Unity SDK
- Import
FirebaseDatabase.unitypackagevia Assets > Import Package > Custom Package - Add your
google-services.json(Android) orGoogleService-Info.plist(iOS) to the project
Connect to Lark
Pass your Lark URL when getting the database instance:FirebaseDatabase.DefaultInstance directly.
Project settings
Before connecting, make sure your Lark project is configured correctly:- Allow Legacy Firebase must be enabled in your Lark project settings. This turns on the Firebase wire protocol.
- If your Firebase app stores many independent data silos under path prefixes (game rooms, workspaces, etc.), see Database routing for options on splitting them into separate Lark databases.

