更新时间:2023-12-06 07:50:15
要禁用持久性,请执行以下操作:
To disable persistence, do:
Firebase.FirebaseDatabase.DefaultInstance.SetPersistenceEnabled(false);
如果您来自 Google,并且无法初始化持久性存储"使用 2 个编辑器测试 Unity 时崩溃,请执行
If you're coming from Google with the "Failed to initialize persistence storage" crash when testing Unity with 2 editors, do
#if UNITY_EDITOR
Firebase.FirebaseDatabase.DefaultInstance.SetPersistenceEnabled(false);
#endif