我在 Unity 上使用 firestore 最新的 sdk“6.12.0”。我必须从数据库获取数据并将其保存到 PlayerPrefs,但由于 PlayerPrefs 仅在主线程上运行,因此会导致旧的“ContinueWith”继续操作出现错误。
Firebase 在文档中给出了这个“ContinueWithOnMainThread”,但我无法在 API 上找到它。我只得到“ContinueWith”选项。
问题是什么,6.12.0 中是否存在“ContinueWithOnMainThread”?
我是c#unity的新手.我要在firebase中保存我的位置数组,因为我正在创建一个像int这样的int数组
int[] positions = new int[] {2, 4, 3};
Run Code Online (Sandbox Code Playgroud)
它的工作正常,但我不知道如何将其转换为字符串数组,"[2, 4, 3]"以保存在firebase中.
我在谷歌搜索并尝试过
string stringPositions = string.Join("", positions);
但它完全将我的数组转换为字符串234.还有如何将此字符串再次编码为数组.如果有任何其他方法可以让我知道.谢谢!